From a1a4216b88f25f3f4b28ac11075e9ac9cadca380 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 25 Jul 2024 12:21:24 +0200 Subject: [PATCH] chore(ui): add test expectation that doesn't immediately pass on blank tree (#31850) Followup to #31815 --- tests/playwright-test/ui-mode-test-filters.spec.ts | 1 + 1 file changed, 1 insertion(+) 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'); });