chore: remove redundant await in test cases

This commit is contained in:
Yifeng Wang
2022-12-25 08:49:30 +08:00
parent 5e58269abd
commit a0e14e448a
15 changed files with 49 additions and 146 deletions
+1 -4
View File
@@ -8,9 +8,6 @@ test.describe('invite code page', () => {
test('the link has expired', async ({ page }) => {
await page.goto('http://localhost:8080//invite/abc');
await page.waitForTimeout(1000);
await expect(
await page.getByText('The link has expired')
).not.toBeUndefined();
expect(page.getByText('The link has expired')).not.toBeUndefined();
});
});