test: use 'chrome' for UI mode tests (#33329)

This commit is contained in:
Max Schmitt 2024-10-28 21:56:46 +01:00 committed by GitHub
parent c9a93486a1
commit 19e863191c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,13 +107,11 @@ export const test = base
cwd: options.cwd ? path.resolve(baseDir, options.cwd) : baseDir,
});
let page: Page;
// Use the browser from ToT so that we don't need to install a stable test runner one.
const executablePath = require('../../packages/playwright-core').chromium.executablePath();
if (options.useWeb) {
await testProcess.waitForOutput('Listening on');
const line = testProcess.output.split('\n').find(l => l.includes('Listening on'));
const uiAddress = line!.split(' ')[2];
browser = await chromium.launch({ executablePath });
browser = await chromium.launch({ channel: 'chrome' });
page = await browser.newPage();
await page.goto(uiAddress);
} else {