Skip to content

Check for element before execute_script

Eric Eastwood requested to merge feature/reliable-rspec-with-eval-script into master

What does this MR do?

Check for element before execute_script/evaluate_script so we know the actual cause of the test failure.

Tip from https://robots.thoughtbot.com/write-reliable-asynchronous-integration-tests-with-capybara#directly-interacting-with-javascript

Are there points in the code the reviewer needs to double check?

  • Do we want to introduce this pattern?

Why was this MR needed?

I didn't directly notice any failures but came across this tip and thought it would be easy to implement.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Eric Eastwood

Merge request reports