test: wait for page to load

This commit is contained in:
lawvs authored and DarkSky committed 2023-01-04 18:06:56 +08:00
1 parent c287380067
commit 1e27b2a619
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -4,6 +4,6 @@ export function loadPage() {
test.beforeEach(async ({ page }) => {
await page.goto('http://localhost:8080');
// waiting for page loading end
// await page.waitForTimeout(1000);
await page.waitForSelector('#__next');
});
}