chore(ui): add test expectation that doesn't immediately pass on blank tree (#31850)

Followup to #31815
This commit is contained in:
Simon Knott 2024-07-25 12:21:24 +02:00 committed by GitHub
parent bdbe4795f1
commit a1a4216b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
});