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

Working features in browser #2453

Merged
merged 5 commits into from
Aug 1, 2018
Merged

Working features in browser #2453

merged 5 commits into from
Aug 1, 2018

Conversation

colinbruce
Copy link
Contributor

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-webdriver

Identified and rectified all other failures.

TODO (wip)

  • There is a possibility that one of the tests will flicker. Monitor and address as needed

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
@colinbruce colinbruce requested a review from jsugarman August 1, 2018 09:20
Copy link
Contributor

@jsugarman jsugarman left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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

@colinbruce colinbruce merged commit 534361b into master Aug 1, 2018
@colinbruce colinbruce deleted the working-features-in-browser branch August 1, 2018 19:51
@lostie
Copy link
Contributor

lostie commented Aug 9, 2018

🏆 😻

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.

3 participants