Skip to content

Commit f2403a9

Browse files
authored
test: prefer toBeVisible selectors
1 parent 8d7ffc4 commit f2403a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/test/filesystem.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ test('editor should reflect new files added in specified paths in webcontainer',
6666

6767
await page.getByRole('button', { name: 'new.txt' }).click();
6868
await expect(async () => {
69-
expect(await page.getByRole('button', { name: 'unknown' }).count()).toEqual(0);
70-
expect(await page.getByRole('button', { name: 'other.txt' }).count()).toEqual(0);
69+
await expect(page.getByRole('button', { name: 'unknown' })).not.toBeVisible();
70+
await expect(page.getByRole('button', { name: 'other.txt' })).not.toBeVisible();
7171
}).toPass();
7272

7373
await expect(page.getByRole('textbox', { name: 'Editor' })).toHaveText('New', {

0 commit comments

Comments
 (0)