-
Notifications
You must be signed in to change notification settings - Fork 7
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
Working features in browser #2453
Conversation
The button is only shown when hovering, this solution works in poltergeist headless _and_ chome webdriver
slow rendering after a logout was causing a flickering test when run in browser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 just that todo comment
@@ -40,7 +40,8 @@ | |||
|
|||
Then(/^I select the first search result$/) do | |||
sleep Capybara.default_max_wait_time | |||
@claim_form_page.offence_results.first.select_button(visible: false).trigger('click') | |||
find(:xpath, '//*[@id="offence-list"]/div[3]/div').hover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, can we just put a # TODO: get working in site-prism
on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added an issue, #2454
🏆 😻 |
What
@lostie implemented chrome based testing as part of #2225
Why
Not all tests would run successfully, some because of the use of
.trigger('click')
some because of hidden or hover elements that poltergeist ignores.How
Find all uses of
.trigger('click')
and replace with.click
, this is honoured by poltergeist and chrome-webdriverIdentified and rectified all other failures.
TODO (wip)