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

[rb] Add missing verification in timeout_spec.rb #7287

Merged
merged 2 commits into from
Jun 14, 2019

Conversation

RustyNail
Copy link
Contributor

I added verification because there is no verification in one of the tests in timeout_spec.rb.
Target test : it 'should implicitly wait for a single element'

Test passes have been verified with Travis CI results.

@@ -34,7 +34,7 @@ module WebDriver
driver.manage.timeouts.implicit_wait = 6

driver.find_element(id: 'adder').click
driver.find_element(id: 'box0')
expect { driver.find_element(id: 'box0') }.not_to raise_error(WebDriver::Error::NoSuchElementError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be .not_to raise_error otherwise it potentially hides errors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your advice. Fixed it.

@twalpole twalpole added the C-rb label Jun 13, 2019
@twalpole
Copy link
Contributor

Thanks!

@twalpole twalpole merged commit 3d119e1 into SeleniumHQ:master Jun 14, 2019
@RustyNail RustyNail deleted the add_verification_timeout_spec branch June 14, 2019 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants