Skip to content

Commit b56d472

Browse files
authored
test: unflake "watch all" test (microsoft#36778)
1 parent e50ce4c commit b56d472

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/playwright-test/ui-mode-test-watch.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ test('should watch all', async ({ runUITest, writeFiles }) => {
150150
'd.test.ts': `import { test } from '@playwright/test'; test('test', () => {});`,
151151
});
152152

153+
await page.getByTitle('Watch all').click();
154+
153155
await expect.poll(dumpTestTree(page)).toBe(`
154156
▼ ◯ a.test.ts
155157
◯ test
@@ -160,7 +162,6 @@ test('should watch all', async ({ runUITest, writeFiles }) => {
160162
▼ ◯ d.test.ts
161163
◯ test
162164
`);
163-
await page.getByTitle('Watch all').click();
164165

165166
await writeFiles({
166167
'a.test.ts': `import { test } from '@playwright/test'; test('test', () => {});`,

0 commit comments

Comments
 (0)