Skip to content

Commit

Permalink
fix(merge): Detox tests fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
bataevvlad committed Jul 30, 2023
1 parent faaddd7 commit a03cfec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/Basic/e2e/ios/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ describe('iOS: Campaign tests setup', () => {
await element(by.id('refresh_campaigns')).tap();
await waitFor(element(by.id('refresh_status_text')))
.toHaveText('Refreshed: true')
.withTimeout(10000); // waits up to 10 seconds
.withTimeout(10000);

await element(by.id('campaigns_list')).scrollTo('top');
await waitFor(element(by.text(`${data.campaign}`))).toBeVisible();

await element(by.text(`${data.campaign}`)).tap();
// Comment if on local machine;
await expect(element(by.id('campaigns_modal_action'))).toHaveText(
'SHOW_PAYWALL',
);
await waitFor(element(by.id('campaigns_modal_action')))
.toHaveText('SHOW_PAYWALL')
.withTimeout(10000);
});
});

Expand Down

0 comments on commit a03cfec

Please sign in to comment.