chore: prohibit unnecessary await (#4586)

This commit is contained in:
Alex Yang
2023-10-12 00:04:58 -05:00
committed by GitHub
parent 5ebd82dc04
commit d05897b724
19 changed files with 104 additions and 104 deletions

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 }) => {