Skip to content

Commit 8d7ffc4

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

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
@@ -38,8 +38,8 @@ test('editor should reflect changes made from webcontainer in file in nested fol
3838
});
3939

4040
// test that ignored actions are ignored
41-
expect(await page.getByRole('button', { name: 'other.txt' }).count()).toEqual(0);
42-
expect(await page.getByRole('button', { name: 'bar.txt' }).count()).toEqual(1);
41+
await expect(page.getByRole('button', { name: 'other.txt' })).not.toBeVisible();
42+
await expect(page.getByRole('button', { name: 'bar.txt' })).toBeVisible();
4343
});
4444

4545
test('editor should reflect changes made from webcontainer in specified paths', async ({ page }) => {

0 commit comments

Comments
 (0)