chore: prohibit unnecessary await (#4586)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-10-12 05:04:58 +00:00
1 parent 5ebd82dc04
commit d05897b724
19 files changed
+104 -104

No files matched your search

+3 -3
View File
@@ -80,9 +80,9 @@ test('allow creation of filters by favorite', async ({ page }) => {
.locator('[data-testid="filter-arg"]', { hasText: 'true' })
.locator('div')
.click();
await expect(
await page.locator('[data-testid="filter-arg"]').textContent()
).toBe('false');
expect(await page.locator('[data-testid="filter-arg"]').textContent()).toBe(
'false'
);
});
test('allow creation of filters by created time', async ({ page }) => {