BioDrop
BioDrop copied to clipboard
[BUG] Existing test now tailing /tests/home.spec.js
Description
The following tests found in test/home.spec.js
test("Footer link goes to GitHub", async ({ page }) => {
await page.goto("/");
const getFooter = page.getByText("Powered by EddieHub");
await getFooter.click();
await page.waitForLoadState("networkidle");
await expect(page).toHaveURL(/github/);
});
Is now failing
npx playwright test tests/home.spec.js
The client environment variables are valid!
The server environment variables are valid!
[14:05:21.261] INFO (92477): DB connection successful:
[14:05:21.712] INFO (92477): github info fetched for repo: EddieHubCommunity/BioDrop
Running 8 tests using 1 worker
The server environment variables are valid!
[WebServer] [next-auth][warn][NEXTAUTH_URL]
https://next-auth.js.org/warnings#nextauth_url
1) [chromium] › home.spec.js:21:5 › Footer link goes to GitHub ───────────────────────────────────
Test timeout of 30000ms exceeded.
Error: page.waitForLoadState: Navigation failed because page was closed!
=========================== logs ===========================
"domcontentloaded" event fired
"load" event fired
============================================================
24 |
25 | await getFooter.click();
> 26 | await page.waitForLoadState("networkidle");
| ^
27 |
28 | await expect(page).toHaveURL(/github/);
29 | });
at /home/ken/Programming/BioDrop/tests/home.spec.js:26:14
The server environment variables are valid!
Slow test file: [chromium] › home.spec.js (1.2m)
Consider splitting slow test files to speed up parallel execution
1 failed
[chromium] › home.spec.js:21:5 › Footer link goes to GitHub ────────────────────────────────────
7 passed (1.7m)
Serving HTML report at http://localhost:9323. Press Ctrl+C to quit.`
Screenshots
No response
Do you want to work on this issue?
None
Additional information
No response
To reduce notifications, issues are locked until they are https://github.com/EddieHubCommunity/BioDrop/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md
I am marking this issue with the label talk: discussion
as we have not seen this fail in a while, but will keep an eye on it.