Skip to content

Commit c109087

Browse files
committed
chore: debug flaky test
1 parent b59402a commit c109087

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/library/inspector/cli-codegen-2.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ var page1 = await context.NewPageAsync();`);
9090
await page.CloseAsync();`);
9191
});
9292

93-
test('should not lead to an error if html gets clicked', async ({ openRecorder }) => {
93+
test.only('should not lead to an error if html gets clicked', async ({ openRecorder }) => {
9494
const { page, recorder } = await openRecorder();
9595

9696
await recorder.setContentAndWait('');

tests/library/playwright.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ if (mode === 'service2') {
7979
};
8080
}
8181

82+
process.env.DEBUG = 'pw:browser';
83+
8284
const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeWorkerOptions> = {
8385
testDir,
8486
outputDir,
@@ -90,7 +92,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
9092
globalTimeout: 5400000,
9193
workers: process.env.CI ? 2 : undefined,
9294
fullyParallel: !process.env.CI,
93-
forbidOnly: !!process.env.CI,
95+
forbidOnly: false,
9496
retries: process.env.CI ? 3 : 0,
9597
reporter: reporters(),
9698
projects: [],

0 commit comments

Comments
 (0)