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

Y24-417 - [BUG] Integration Suite error - Selenium::WebDriver::Error::UnknownError - Node with given id does not belong to the document #462

Open
StephenHulme opened this issue Oct 23, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@StephenHulme
Copy link

StephenHulme commented Oct 23, 2024

Describe the bug
Some tests are failing with Selenium::WebDriver::Error::UnknownError: unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"} causing test flakiness.

Identify the cause and eliminate the flakiness. Expected cause is a race condition where the error occurs when the tests asserts the 'creating...' modal does not exist but it temporarily exists before being removed.

To Reproduce
Steps to reproduce the behaviour:

  1. From Integration Suite command line, execute:
# warning, this will open 10 Chrome windows
for i in $(seq 1 10); 
  do (DEBUG_ON_FAIL=true ENVIRONMENT=uat bundle exec rspec ./spec/limber/bespoke_chromium_3pv3_pipeline_spec.rb:38 > $i.test_log &);
done
  1. The results will be recorded in test_log files for parsing/grepping.

Alternatively use https://github.com/sanger/interrogator to indentify examples of this error from the flagged flaky tests.

Expected behaviour
The tests pass without that failure message.

Additional context
See example at:
https://gitlab.internal.sanger.ac.uk/psd/integration-suite/-/jobs/1648820/artifacts/file/tmp/capybara/limber_bespoke_chromium_3pv3_pipeline_spec_38.png
https://gitlab.internal.sanger.ac.uk/psd/integration-suite/-/jobs/1648820

@psd-issuer psd-issuer bot changed the title [BUG] Integration Suite error - Selenium::WebDriver::Error::UnknownError - Node with given id does not belong to the document Y24-417 - [BUG] Integration Suite error - Selenium::WebDriver::Error::UnknownError - Node with given id does not belong to the document Oct 23, 2024
@KatyTaylor KatyTaylor added the Bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants