diff --git a/playwright.config.ts b/playwright.config.ts index 23a298265..b4a6a9b08 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -32,6 +32,17 @@ export default defineConfig({ /* Configure projects for major browsers */ projects: [ + // { + // name: 'chromium', + // use: { + // ...devices['Desktop Chrome'], + // launchOptions: { + // ignoreDefaultArgs: ['--mute-audio'], + // args: ['--autoplay-policy=no-user-gesture-required'] + // }, + // } + // }, + { name: 'chromium', use: { @@ -68,28 +79,30 @@ export default defineConfig({ // name: 'Microsoft Edge', // use: { ...devices['Desktop Edge'], channel: 'msedge' }, // }, - { - name: 'Google Chrome', - use: { - ...devices['Desktop Chrome'], - channel: 'chrome', - launchOptions: { - ignoreDefaultArgs: ['--mute-audio'], - args: ['--autoplay-policy=no-user-gesture-required'] - }, - }, - }, - { - name: 'Google Chrome Canary', - use: { - ...devices['Desktop Chrome'], - channel: 'chrome-canary', - launchOptions: { - ignoreDefaultArgs: ['--mute-audio'], - args: ['--autoplay-policy=no-user-gesture-required'] - }, - }, - } + + // // Chrome + // { + // name: 'Google Chrome', + // use: { + // ...devices['Desktop Chrome'], + // channel: 'chrome', + // launchOptions: { + // ignoreDefaultArgs: ['--mute-audio'], + // args: ['--autoplay-policy=no-user-gesture-required'] + // }, + // }, + // }, + // { + // name: 'Google Chrome Canary', + // use: { + // ...devices['Desktop Chrome'], + // channel: 'chrome-canary', + // launchOptions: { + // ignoreDefaultArgs: ['--mute-audio'], + // args: ['--autoplay-policy=no-user-gesture-required'] + // }, + // }, + // } ], /* Run your local dev server before starting the tests */ diff --git a/src/tests/playwright/pages/realtime-sine.html b/src/tests/playwright/pages/realtime-sine.html index 8cf97c48c..da28beec7 100644 --- a/src/tests/playwright/pages/realtime-sine.html +++ b/src/tests/playwright/pages/realtime-sine.html @@ -8,7 +8,6 @@

Realtime Sine Test

Play 440Hz sine wave for 1 second, 880Hz for 1 second, then stop

- diff --git a/src/tests/playwright/runner.spec.ts b/src/tests/playwright/runner.spec.ts index 1589571fd..a1c7e34ca 100644 --- a/src/tests/playwright/runner.spec.ts +++ b/src/tests/playwright/runner.spec.ts @@ -2,7 +2,6 @@ import { test, expect } from '@playwright/test'; test('Hello Sine (realtime)', async ({ page }) => { await page.goto('pages/realtime-sine.html'); - await page.click('#start'); const osc = await page.evaluateHandle(object => osc);