Skip to content

Commit 16efd76

Browse files
authored
Merge pull request #3 from appwrite/fix-qa
Fix: QA feedback
2 parents cd14870 + d78d9ef commit 16efd76

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

package.json

+1-1
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

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ 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.waitForTimeout(3000); // Safe addition for any extra JS
5255
const screen = await page.screenshot();
5356
await context.close();
5457
return screen;

0 commit comments

Comments
 (0)