1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Update minor text/link issue in warning for FirefoxNode

When using CI systems, this auto-converts into a link. But appends the `.` at the end. So I've just removed it.
This commit is contained in:
Luke Hill 2022-11-02 08:44:07 +00:00 committed by GitHub
parent 2d05c203d7
commit 03611a31f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ class Capybara::Selenium::FirefoxNode < Capybara::Selenium::Node
rescue ::Selenium::WebDriver::Error::ElementNotInteractableError rescue ::Selenium::WebDriver::Error::ElementNotInteractableError
if tag_name == 'tr' if tag_name == 'tr'
warn 'You are attempting to click a table row which has issues in geckodriver/marionette - ' \ warn 'You are attempting to click a table row which has issues in geckodriver/marionette - ' \
'see https://github.com/mozilla/geckodriver/issues/1228. Your test should probably be ' \ 'see https://github.com/mozilla/geckodriver/issues/1228 - Your test should probably be ' \
'clicking on a table cell like a user would. Clicking the first cell in the row instead.' 'clicking on a table cell like a user would. Clicking the first cell in the row instead.'
return find_css('th:first-child,td:first-child')[0].click(keys, **options) return find_css('th:first-child,td:first-child')[0].click(keys, **options)
end end