mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Merge pull request #1648 from giantmonkey/fix-spelling-of-two-words
Fix spelling of two words
This commit is contained in:
commit
34e2eff49c
2 changed files with 3 additions and 3 deletions
|
@ -113,11 +113,11 @@ module Capybara
|
|||
|
||||
##
|
||||
#
|
||||
# Modify a selector previously craeated by {Capybara.add_selector}.
|
||||
# Modify a selector previously created by {Capybara.add_selector}.
|
||||
# For example modifying the :button selector to also find divs styled
|
||||
# to look like buttons might look like this
|
||||
#
|
||||
# Capybara.modfiy_selector(:button) do
|
||||
# Capybara.modify_selector(:button) do
|
||||
# xpath { |locator| XPath::HTML.button(locator).or(XPath::css('div.btn')[XPath::string.n.is(locator)]) }
|
||||
# end
|
||||
#
|
||||
|
|
|
@ -29,7 +29,7 @@ RSpec.describe Capybara do
|
|||
end
|
||||
end
|
||||
|
||||
describe "modfiy_selector" do
|
||||
describe "modify_selector" do
|
||||
it "allows modifying a selector" do
|
||||
el = string.find(:custom_selector, 'a')
|
||||
expect(el.tag_name).to eq 'div'
|
||||
|
|
Loading…
Add table
Reference in a new issue