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

[🐛 Bug]: Watch mode with Webdriver protocol shows "FetchError" on re-runs #9612

Closed
3 tasks done
romaricpascal opened this issue Jan 16, 2023 · 1 comment · Fixed by #9968
Closed
3 tasks done

[🐛 Bug]: Watch mode with Webdriver protocol shows "FetchError" on re-runs #9612

romaricpascal opened this issue Jan 16, 2023 · 1 comment · Fixed by #9968
Labels
Bug 🐛 help wanted Issues that are free to take by anyone interested

Comments

@romaricpascal
Copy link

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.1.3

Node.js Version

v18.12.1

Mode

WDIO Testrunner

Which capabilities are you using?

https://github.com/alphagov/govuk-frontend/blob/ceeb9a7c6c0c807d8e2eae923b890f26ddebd476/wdio.conf.js

What happened?

When running the wdio test runner in watch mode, re-runs of tests trigger a "TypeError: Failed to fetch browser webSocket URL", preventing the tests to run.

The error is the same as #8279, but occurs in a different context.

What is your expected behavior?

No response

How to reproduce the bug.

  1. Checkout https://github.com/alphagov/govuk-frontend/tree/467e25a5f9f20d417d6bec9ed2bff99e67b68b7d (devtools) or https://github.com/alphagov/govuk-frontend/tree/90791a088da2bfa24efb3a89277069fb73ced930 (webdriver)
  2. run npm install
  3. run npm run wdio -- --watch. This will run the tests a first time
  4. run touch src/govuk/components/character-count/character-count.e2e.mjs to trigger a test re-run (if touch is not available on your system, you can open and save the file)

Relevant log output

[0-0] 2023-01-16T11:39:35.733Z ERROR @wdio/runner: TypeError: Failed to fetch browser webSocket URL from http://localhost:50849/json/version: fetch failed

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues
@christian-bromann
Copy link
Member

Thanks for reporting!

Any contributions that resolves the bug are highly appreciated. Please take a look into our contribution guidelines and let us know if you have any questions. Cheers!

@christian-bromann christian-bromann added help wanted Issues that are free to take by anyone interested and removed Needs Triaging ⏳ No one has looked into the issue yet labels Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 help wanted Issues that are free to take by anyone interested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants