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

Running tests in headless mode for Firefox is failing with 500 code response but ok in web browser #2321

Closed
austincarrig opened this issue Sep 28, 2020 · 4 comments
Labels

Comments

@austincarrig
Copy link

Describe the Bug

Running wasm-pack test --headless --firefox should show passed tests, but it fails.

Duplicate of issue #2261

Steps to Reproduce

  1. -> git clone https://github.com/rustwasm/wasm_game_of_life.git
  2. -> cd wasm_game_of_life
  3. -> wasm-pack test --firefox --headless

If applicable, add a link to a test case (as a zip file or link to a repository we can clone).

Expected Behavior

Should pass tests.

Actual Behavior

Tests fail when they should pass

Additional Context

Add any other context about the problem here.

@alexlapa
Copy link
Contributor

There are a lot of things that could go wrong. Could you please run tests with logging on?

RUST_LOG=DEBUG wasm-pack test --firefox --headless

And specify geckodriver and Firefox versions: firefox -V, geckodriver -V.

@austincarrig
Copy link
Author

I pushed the log up to my project: log file. It's a lot, about 30,000 lines of output.

I don't have Firefox or Geckodriver installed, but this was working a few weeks ago no problem without them installed...

It's also failing in Travis CI, and I don't specify geckodriver/firefox versions for that. Example here. If you can't see that let me know, it should be public but I'm relatively new to working with Travis CI.

@alexlapa
Copy link
Contributor

alexlapa commented Nov 7, 2020

You have wasm-bindgen version locked at 0.2.63 on #automation-testing branch, and this issue is supposed to be fixed in 0.2.68. Try running cargo update and rerun CI.

@austincarrig
Copy link
Author

This is such a simple thing, I can't believe I missed it... thank you @alexlapa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants