Skip to content

Commit b5fef86

Browse files
moar
1 parent e5141de commit b5fef86

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/e2eIosTest/java/io/appium/java_client/ios/IOSContextTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ public class IOSContextTest extends BaseIOSWebViewTest {
3434
}
3535

3636
@Test public void testGetContextHandles() {
37-
assertEquals(driver.getContextHandles().size(), 2);
37+
// this test is not stable in the CI env due to simulator slowness
38+
Assumptions.assumeFalse(TestUtils.isCiEnv());
39+
40+
assertEquals(2, driver.getContextHandles().size());
3841
}
3942

4043
@Test public void testSwitchContext() throws InterruptedException {
41-
// this test is not stable in the CI env
44+
// this test is not stable in the CI env due to simulator slowness
4245
Assumptions.assumeFalse(TestUtils.isCiEnv());
4346

4447
driver.getContextHandles();
@@ -48,6 +51,9 @@ public class IOSContextTest extends BaseIOSWebViewTest {
4851
}
4952

5053
@Test public void testContextError() {
54+
// this test is not stable in the CI env due to simulator slowness
55+
Assumptions.assumeFalse(TestUtils.isCiEnv());
56+
5157
assertThrows(NoSuchContextException.class, () -> driver.context("Planet of the Ape-ium"));
5258
}
5359
}

0 commit comments

Comments
 (0)