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

Switch from Selenium to Cuprite #5476

Closed
wants to merge 2 commits into from
Closed

Conversation

ethax-ross
Copy link
Collaborator

⚠️ WIP

Context

We have noticed that our CI is hanging randomly on the feature specs that are using the Javascript Selenium webdriver. It appears to be a HTTP timeout that Selenium experiences, though its not easy to replicate or debug.

Changes proposed in this pull request

  • Switch from Selenium to Cuprite

In an effort to fix the issue we can move to Cuprite, which is a pure Ruby driver for Capybara. An issue with doing this is that the latest versions of axe-core-api have not been updated for Cuprite support (they expect Selenium). It does, however, work with versions prior to 4.3 so we can pin the version.

Guidance to review

This should get rid of the flakiness as its removing Selenium, which is where it falls down. I'm still not clear on why Selenium is flakey though.

There are some nuances with how Cuprite behaves so the tests have minor updates to reflect that.

Copy link

Review app deployed to https://cpd-ecf-review-5476-web.test.teacherservices.cloud

We have noticed that our CI is hanging randomly on the feature specs that are
using the Javascript Selenium webdriver. It appears to be a HTTP timeout that
Selenium experiences, though its not easy to replicate or debug.

In an effort to fix the issue we can move to Cuprite, which is a pure Ruby
driver for Capybara. An issue with doing this is that the latest versions of
`axe-core-api` have not been updated for Cuprite support (they expect
Selenium). It does, however, work with versions prior to `4.3` so we can pin
the version.

This should get rid of the flakiness as its removing Selenium, which is where
it falls down. I'm still not clear on why Selenium is flakey though.
@ethax-ross
Copy link
Collaborator Author

Closing as cuprite seems flakey

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

Successfully merging this pull request may close these issues.

1 participant