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

Remove Capybara default_set_options for non JS system tests #4542

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

Senen
Copy link
Member

@Senen Senen commented Jun 10, 2021

References

Background

The next warning is flooding the tests log:

Options passed to Node#set but the RackTest driver doesn't support any - ignoring

As the rack test driver does not support any option for the Node#set method, we get rid of all default_set_options before each system spec that uses this driver.

From Capybara's docs:
default_set_options (Hash = {}) - The default options passed to Element#set.

Objectives

Do not pass options to rack test driver to get rid of the warning.

@Senen Senen self-assigned this Jun 10, 2021
… Test driver

The next warning is flooding the tests log:

`Options passed to Node#set but the RackTest driver
doesn't support any - ignoring`

As the rack test driver does not support any option, we
get rid of all `default_set_options` before each system
spec that uses this driver.
@Senen Senen marked this pull request as ready for review June 10, 2021 11:21
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

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

Awesome!

Funny how I tested this approach while working on pull request #4456 and discarded it because I got an "unknown option" error.

Who knows, maybe when testing it I wrote clear: backpsace or something 😅.

Seems to be working fine 👍.

@javierm javierm merged commit fe5847d into master Jun 10, 2021
@javierm javierm deleted the rack_test_driver_warning branch June 10, 2021 11:45
@javierm javierm added the Specs label Aug 16, 2021
@javierm javierm added this to Reviewing in Consul Democracy via automation Aug 16, 2021
@javierm javierm moved this from Reviewing to Release 1.4.0 in Consul Democracy Aug 16, 2021
@javierm javierm moved this from Release 1.4.0 to Testing in Consul Democracy Aug 16, 2021
@javierm javierm moved this from Testing to Release 1.4.0 in Consul Democracy Aug 16, 2021
@javierm javierm self-assigned this Sep 13, 2021
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.

None yet

2 participants