Skip to content

Commit

Permalink
ci: Update the flow for Android e2e tests (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored May 5, 2024
1 parent 57e431c commit 496417f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
platform: macos-12
e2e-tests: ios
- java: 17
platform: macos-latest
platform: ubuntu-latest
e2e-tests: android
- java: 21
platform: ubuntu-latest
Expand All @@ -49,6 +49,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Enable KVM group perms
if: matrix.e2e-tests == 'android'
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -84,8 +91,8 @@ jobs:
script: ./gradlew e2eAndroidTest -PisCI -Pselenium.version=$latest_snapshot
api-level: ${{ env.ANDROID_SDK_VERSION }}
avd-name: ${{ env.ANDROID_EMU_NAME }}
sdcard-path-or-size: 1500M
disable-spellchecker: true
disable-animations: true
target: ${{ env.ANDROID_EMU_TARGET }}

- name: Select Xcode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
import org.junit.jupiter.api.BeforeAll;

import java.io.IOException;
import java.time.Duration;

public class BaseSafariTest extends BaseIOSTest {
private static final Duration WEBVIEW_CONNECT_TIMEOUT = Duration.ofSeconds(30);

@BeforeAll public static void beforeClass() throws IOException {
startAppiumServer();
Expand All @@ -31,6 +33,7 @@ public class BaseSafariTest extends BaseIOSTest {
.withBrowserName(MobileBrowserType.SAFARI)
.setDeviceName(DEVICE_NAME)
.setPlatformVersion(PLATFORM_VERSION)
.setWebviewConnectTimeout(WEBVIEW_CONNECT_TIMEOUT)
.setWdaLaunchTimeout(WDA_LAUNCH_TIMEOUT);
driver = new IOSDriver(service.getUrl(), options);
}
Expand Down

0 comments on commit 496417f

Please sign in to comment.