Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/config/traceViewerFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class TraceViewerPage {
}

export const traceViewerFixtures: Fixtures<TraceViewerFixtures, {}, BaseTestFixtures, BaseWorkerFixtures> = {
showTraceViewer: async ({ playwright, childProcess }, use) => {
showTraceViewer: async ({ playwright, childProcess, browserName }, use) => {
const browsers: Browser[] = [];
await use(async (trace: string | undefined, { host, port, stdin } = {}) => {
const command = [
Expand All @@ -171,6 +171,7 @@ export const traceViewerFixtures: Fixtures<TraceViewerFixtures, {}, BaseTestFixt
const cp = childProcess({ command });
await cp.waitForOutput('Listening on');
const browser = await playwright.chromium.launch({
...(browserName === 'chromium' ? {} : { channel: 'chromium' }),
executablePath: process.env.CRPATH, // without this, setting FFPATH makes us launch Firefox with Chromium args
});
browsers.push(browser);
Expand Down
Loading