Skip to content

Commit ca05aa5

Browse files
committed
Fixes after Appwrite QA
1 parent cd14870 commit ca05aa5

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"h3": "^1.13.0",
2020
"lighthouse": "^12.2.1",
21-
"playwright": "^1.48.1",
21+
"playwright": "^1.50.1",
2222
"playwright-lighthouse": "^4.0.0",
2323
"zod": "^3.23.8"
2424
},

pnpm-lock.yaml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ router.post(
4848
extraHTTPHeaders: body.headers,
4949
});
5050
const page = await context.newPage();
51-
await page.goto(body.url);
51+
await page.goto(body.url, {
52+
waitUntil: 'domcontentloaded',
53+
});
54+
await page.waitForFunction(() => {
55+
// eslint-disable-next-line
56+
return document.fonts.ready
57+
});
58+
await page.waitForTimeout(3000); // Safe addition for any extra JS
5259
const screen = await page.screenshot();
5360
await context.close();
5461
return screen;

0 commit comments

Comments
 (0)