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

This commit is contained in:
Simon Knott 2024-07-25 10:02:44 +02:00
parent bdbe4795f1
commit 49c4d1f47d
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

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