Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix Electron/WebView2/Android tests (#37386)

Max Schmittd1e8d4dab873
diff --git a/tests/android/playwright.config.ts b/tests/android/playwright.config.ts
index e26923000f..db8e968b17 100644
--- a/tests/android/playwright.config.ts
+++ b/tests/android/playwright.config.ts
@@ -29,6 +29,9 @@ const testDir = path.join(__dirname, '..');
const config: Config<ServerWorkerOptions & PlaywrightWorkerOptions & PlaywrightTestOptions> = {
testDir,
outputDir,
+ expect: {
+ timeout: 10000,
+ },
timeout: 120000,
globalTimeout: 7200000,
workers: 1,
diff --git a/tests/electron/playwright.config.ts b/tests/electron/playwright.config.ts
index 9866c2aaf1..841e04f1ef 100644
--- a/tests/electron/playwright.config.ts
+++ b/tests/electron/playwright.config.ts
@@ -28,6 +28,9 @@ const testDir = path.join(__dirname, '..');
const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
testDir,
outputDir,
+ expect: {
+ timeout: 10000,
+ },
timeout: 30000,
globalTimeout: 5400000,
workers: process.env.CI ? 1 : undefined,
diff --git a/tests/webview2/playwright.config.ts b/tests/webview2/playwright.config.ts
index 3feb25792c..e33981d732 100644
--- a/tests/webview2/playwright.config.ts
+++ b/tests/webview2/playwright.config.ts
@@ -28,6 +28,9 @@ const testDir = path.join(__dirname, '..');
const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions> = {
testDir,
outputDir,
+ expect: {
+ timeout: 10000,
+ },
timeout: 30000,
globalTimeout: 5400000,
workers: process.env.CI ? 1 : undefined,