Skip to content

Commit

Permalink
disabledSynchronization: waiting for tap button to be visible to elim…
Browse files Browse the repository at this point in the history
…inate flakiness of the test in CI
  • Loading branch information
rotemmiz committed Aug 10, 2017
1 parent e607fb3 commit d9e8c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/test/e2e/m-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Network Synchronization', () => {

it('disableSynchronization() should disable sync', async () => {
await device.disableSynchronization();

await waitFor(element(by.id('LongNetworkRequest'))).toBeVisible().withTimeout(4000);
await element(by.id('LongNetworkRequest')).tap();
await expect(element(by.label('Long Network Request Working!!!'))).toBeNotVisible();
await waitFor(element(by.label('Long Network Request Working!!!'))).toBeVisible().withTimeout(4000);
Expand Down

0 comments on commit d9e8c4a

Please sign in to comment.