Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

[BUG] Existing test now tailing /tests/home.spec.js  #9463

Open
@kbventures

Description

@kbventures

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions