make green

This commit is contained in:
Max Schmitt 2024-09-06 14:01:05 +02:00
parent e2418c1151
commit 745167d968
5 changed files with 12 additions and 7 deletions

View file

@ -16,6 +16,10 @@
import { androidTest as test, expect } from './androidTest'; import { androidTest as test, expect } from './androidTest';
test.beforeEach(async ({ androidDevice }) => {
await androidDevice.shell('am force-stop com.google.android.googlequicksearchbox');
});
test.afterEach(async ({ androidDevice }) => { test.afterEach(async ({ androidDevice }) => {
await androidDevice.shell('am force-stop org.chromium.webview_shell'); await androidDevice.shell('am force-stop org.chromium.webview_shell');
await androidDevice.shell('am force-stop com.android.chrome'); await androidDevice.shell('am force-stop com.android.chrome');

View file

@ -284,8 +284,9 @@ it('should fulfill popup main request using alias', async ({ page, server, isEle
it('request.postData is not null when fetching FormData with a Blob', { it('request.postData is not null when fetching FormData with a Blob', {
annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24077' } annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24077' }
}, async ({ server, page, browserName, isElectron, electronMajorVersion }) => { }, async ({ server, page, browserName, isElectron, electronMajorVersion, isAndroid }) => {
it.skip(isElectron && electronMajorVersion < 31); it.skip(isElectron && electronMajorVersion < 31);
it.fixme(isAndroid, 'potData is null for some reason');
it.fixme(browserName === 'webkit', 'The body is empty in WebKit when intercepting'); it.fixme(browserName === 'webkit', 'The body is empty in WebKit when intercepting');
await page.goto(server.EMPTY_PAGE); await page.goto(server.EMPTY_PAGE);
await page.setContent(` await page.setContent(`

View file

@ -24,7 +24,7 @@ echo Installing emulator...
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install platform-tools emulator yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install platform-tools emulator
echo Installing platform SDK... echo Installing platform SDK...
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-34" yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-35"
echo Starting ADB... echo Starting ADB...
${ANDROID_HOME}/platform-tools/adb devices ${ANDROID_HOME}/platform-tools/adb devices

View file

@ -13,7 +13,7 @@ if [[ "$(uname -m)" == "arm64" ]]; then
ANDROID_ARCH="arm64-v8a" ANDROID_ARCH="arm64-v8a"
fi fi
${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager delete avd --name android34 || true ${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager delete avd --name android35 || true
yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-34;google_apis;$ANDROID_ARCH" platform-tools emulator yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-35;google_apis;$ANDROID_ARCH" platform-tools emulator
echo "no" | ${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager create avd --force --name android34 --device "Nexus 5X" --package "system-images;android-34;google_apis;$ANDROID_ARCH" echo "no" | ${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager create avd --force --name android35 --device "Nexus 5X" --package "system-images;android-35;google_apis;$ANDROID_ARCH"
${ANDROID_HOME}/emulator/emulator -list-avds ${ANDROID_HOME}/emulator/emulator -list-avds

View file

@ -9,8 +9,8 @@ fi
bash $PWD/utils/avd_stop.sh bash $PWD/utils/avd_stop.sh
echo "Starting emulator" echo "Starting emulator"
# nohup ${ANDROID_HOME}/emulator/emulator -avd android34 -gpu swiftshader & # nohup ${ANDROID_HOME}/emulator/emulator -avd android35 -gpu swiftshader &
nohup ${ANDROID_HOME}/emulator/emulator -avd android34 -no-audio -no-window -no-boot-anim -no-snapshot & nohup ${ANDROID_HOME}/emulator/emulator -avd android35 -no-audio -no-window -no-boot-anim -no-snapshot &
${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82' ${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
${ANDROID_HOME}/platform-tools/adb devices ${ANDROID_HOME}/platform-tools/adb devices
echo "Emulator started" echo "Emulator started"