Skip to content

Commit 1e99e94

Browse files
Update tests
1 parent 0ece615 commit 1e99e94

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package io.appium.java_client.ios;
1818

1919
import io.appium.java_client.NoSuchContextException;
20+
import io.appium.java_client.TestUtils;
21+
import org.junit.jupiter.api.Assumptions;
2022
import org.junit.jupiter.api.Test;
2123

2224
import static io.appium.java_client.HasBrowserCheck.NATIVE_CONTEXT;
@@ -36,6 +38,9 @@ public class IOSContextTest extends BaseIOSWebViewTest {
3638
}
3739

3840
@Test public void testSwitchContext() throws InterruptedException {
41+
// this test is not stable in the CI env
42+
Assumptions.assumeFalse(TestUtils.isCiEnv());
43+
3944
driver.getContextHandles();
4045
findAndSwitchToWebView();
4146
assertThat(driver.getContext(), containsString("WEBVIEW"));

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ public void setupEach() {
5050

5151
@Test
5252
public void addCustomCommandTest() {
53-
driver.addCommand(HttpMethod.GET, "/sessions", "getSessions");
53+
driver.addCommand(HttpMethod.GET, "/appium/sessions", "getSessions");
5454
final Response getSessions = driver.execute("getSessions");
5555
assertNotNull(getSessions.getSessionId());
5656
}
5757

5858
@Test
5959
public void addCustomCommandWithSessionIdTest() {
60-
driver.addCommand(HttpMethod.POST, "/session/" + driver.getSessionId() + "/appium/app/strings",
61-
"getAppStrings");
62-
final Response getStrings = driver.execute("getAppStrings");
63-
assertNotNull(getStrings.getSessionId());
60+
driver.addCommand(HttpMethod.POST, "/session/" + driver.getSessionId() + "/appium/capabilities",
61+
"getSessionCapabilities");
62+
final Response getSessionCapabilities = driver.execute("getSessionCapabilities");
63+
assertNotNull(getSessionCapabilities.getSessionId());
6464
}
6565

6666
@Test

0 commit comments

Comments
 (0)