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

@@ -1,8 +1,9 @@
import { test } from '@affine-test/kit/playwright';
import { open404Page } from '@affine-test/kit/utils/load-page';
import { expect } from '@playwright/test';
test('visit 404 page', async ({ page }) => {
await page.goto('http://localhost:8080/404');
await open404Page(page);
const notFoundTip = page.getByTestId('not-found');
await expect(notFoundTip).toBeVisible();
});