diff --git a/tests/playwright-test/ui-mode-test-filters.spec.ts b/tests/playwright-test/ui-mode-test-filters.spec.ts index 3f65c65a0e..5d70048473 100644 --- a/tests/playwright-test/ui-mode-test-filters.spec.ts +++ b/tests/playwright-test/ui-mode-test-filters.spec.ts @@ -234,6 +234,7 @@ test('should only show tests selected with --grep', async ({ runUITest }) => { const { page } = await runUITest(basicTestTree, undefined, { additionalArgs: ['--grep', 'fails'], }); + await expect.poll(dumpTestTree(page)).toContain('fails'); await expect.poll(dumpTestTree(page)).not.toContain('passes'); });