Skip to content

Commit c58db54

Browse files
authored
[MOB-10387] Fix e2e_ios CI Flakiness (#814)
* Blacklist Instabug's API from Detox's network sync * Wait for floating button to appear before pressing it
1 parent 6f3403f commit c58db54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

example/e2e/reportBug.e2e.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import mockData from './utils/mockData';
33

44
beforeEach(async () => {
55
await device.launchApp();
6-
});
7-
8-
beforeEach(async () => {
96
await device.reloadReactNative();
7+
await device.setURLBlacklist(['https://api.instabug.com']);
108
});
119

1210
it('reports a bug', async () => {
13-
await getElement('floatingButton').tap();
11+
const floatingButton = getElement('floatingButton');
12+
await waitFor(floatingButton).toBeVisible().withTimeout(30000);
13+
await floatingButton.tap();
14+
1415
await getElement('reportBugMenuItem').tap();
1516

1617
await getElement('emailField').typeText(mockData.email);

0 commit comments

Comments
 (0)