-
Notifications
You must be signed in to change notification settings - Fork 15
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
[breaking change] unobtrusive datepicker interaction #21
base: master
Are you sure you want to change the base?
[breaking change] unobtrusive datepicker interaction #21
Conversation
@@ -28,4 +28,6 @@ Gem::Specification.new do |gem| | |||
gem.add_development_dependency 'phantomjs', '~> 2.1', '>= 2.1.1.0' | |||
gem.add_development_dependency 'poltergeist', '~> 1.18', '>= 1.18.1' | |||
gem.add_development_dependency 'rspec', '~> 3.9', '>= 3.9.0' | |||
gem.add_development_dependency 'webdrivers' | |||
gem.add_development_dependency 'selenium-webdriver' |
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 am not used to update gemspec file, so that I have not marked versions.
I would require some help for that.
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.
The syntax is the same as in a Gemfile. The site rubygems.org provides an example of the correct syntax based on the latest version available on the detail page of each gem. For example :
gem 'webdrivers', '~> 4.6'
Just convert it to the Gemspec syntax:
gem.add_development_dependency 'webdrivers' , '~> 4.6'
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.
Also, it seems that selenium-webdriver
is a dependency of webdrivers
, so you may not need to add it explicitly.
- remove validation ('fail' statement) at the end of `#select_bootstrap_date` - remove additional click on '//body' at the end of `#select_date` - extend test suite covering with "selenium_chrome_headless"
e7d954a
to
918ad43
Compare
Click on "//body" could be optional, with new option "skip_blur" for instance |
Great catch! You are doubly right! Explicit behaviour is better. And I agree about Would you consider adding I'll really be glad to merge this PR! Thanks a lot. |
Dear maintainer,
In our project we are using Capybara Selenium with Chrome browser.
We have encountered issues with obtrusive interactions in conflicts with external factors such as dialogs.
In our opinion, there are two acceptable/required changes in this gem:
select_bootstrap_date
because it's not the role of the helper//body
at the end ofselect_date
and rely on autocloseThose changes will certainly break some test suites of current users, but it increases the compatibility of your gem.
Please give me some feedbacks!
current behavior
Using Chrome, dialogs must be caught explicitely before making additional interaction with DOM:
Also, when using
autoclose: true
, the additional click on//body
made at the end ofselect_date
is useless.expected behavior
We expect helper to be less obtrusive and more explicit: