diff --git a/packages/playwright/src/program.ts b/packages/playwright/src/program.ts index 834a6ecf59..136606b26c 100644 --- a/packages/playwright/src/program.ts +++ b/packages/playwright/src/program.ts @@ -161,7 +161,7 @@ async function runTests(args: string[], opts: { [key: string]: any }) { if (opts.onlyChanged) throw new Error(`--only-changed is not supported in UI mode. If you'd like that to change, see https://github.com/microsoft/playwright/issues/15075 for more details.`); - const status = await testServer.runUIMode(opts.config, cliOverrides,{ + const status = await testServer.runUIMode(opts.config, cliOverrides, { host: opts.uiHost, port: opts.uiPort ? +opts.uiPort : undefined, args, diff --git a/tests/playwright-test/ui-mode-test-run.spec.ts b/tests/playwright-test/ui-mode-test-run.spec.ts index 6b38f380f6..81316f42ee 100644 --- a/tests/playwright-test/ui-mode-test-run.spec.ts +++ b/tests/playwright-test/ui-mode-test-run.spec.ts @@ -447,7 +447,7 @@ test('should show proper total when using deps', async ({ runUITest }) => { test('should respect --tsconfig option', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/32797' } -},async ({ runUITest }) => { +}, async ({ runUITest }) => { const { page } = await runUITest({ 'playwright.config.ts': ` import { foo } from '~/foo';