Skip to content

Commit 49c941c

Browse files
authored
test: prefer toBeVisible selectors
1 parent f2403a9 commit 49c941c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/test/filesystem.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ test('editor should remove deleted files in specified paths in webcontainer', as
8282
await page.getByTestId('delete-file').click();
8383

8484
await expect(async () => {
85-
expect(await page.getByRole('button', { name: 'bar.txt' }).count()).toEqual(0);
85+
await expect(page.getByRole('button', { name: 'bar.txt' })).not.toBeVisible();
8686
}).toPass();
8787
});
8888

0 commit comments

Comments
 (0)