Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled Tests: Run Playwright tests failing while Navigating to the endpoint: http://localhost . #1592

Open
vishwahiremat opened this issue Jul 8, 2024 · 1 comment
Labels
bug Something is broken or not working as expected flaky-test Flaky functional/unit tests triaged This item has been triaged by project maintainers and is in the backlog

Comments

@vishwahiremat
Copy link
Contributor

vishwahiremat commented Jul 8, 2024

Playwright tests are timing out as "Navigating to the endpoint: http://localhost" step is failing.

error: {
      message: 'Error: page.goto: net::ERR_EMPTY_RESPONSE at http://localhost/\n' +
        'Call log:\n' +
        '  \x1B[2m- navigating to "http://localhost/", waiting until "load"\x1B[22m\n',
      stack: 'Error: page.goto: net::ERR_EMPTY_RESPONSE at http://localhost/\n' +
        'Call log:\n' +
        '  \x1B[2m- navigating to "http://localhost/", waiting until "load"\x1B[22m\n' +
        '\n' +
        '    at /home/runner/work/samples/samples/playwright/tests/eshop/eshop.app.spec.ts:24:16'
    }
  }
...........
  Error: Timed out 30000ms waiting for expect(locator).toHaveURL(expected)

    Locator: locator(':root')
    Expected pattern: /http:\/\/localhost\/catalog.*/
    Received string:  "chrome-error://chromewebdata/"
    Call log:
      - expect.toHaveURL with timeout 30000ms
      - waiting for locator(':root')
      -   locator resolved to <html>…</html>
      -   unexpected value "chrome-error://chromewebdata/"

AB#12655

@lakshmimsft
Copy link
Contributor

lakshmimsft commented Jul 11, 2024

Tests started failing intermittently the past few weeks and consistently on scheduled run this week (08Jul-12Jul) for test to deploy eshop on containers and azure.
Playwright is unable to reach endpoint http://localhost while previous step to deploy eshop looks successful in logs.

Adding sample logs and artifacts for a run which encountered this error.
playwright-report-eshop-containers (3).zip
playwright-video-eshop-azure.zip
playwright-video-eshop-containers.zip

eshop-azure-pod-logs (2).zip
eshop-containers-pod-logs (2).zip
logs_25795818405.zip
playwright-report-demo (1).zip
playwright-report-eshop-aws (1).zip
playwright-report-eshop-azure (4).zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken or not working as expected flaky-test Flaky functional/unit tests triaged This item has been triaged by project maintainers and is in the backlog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants