blob: 337779d54712b10600f38c73c99ab47ca2b9e996 (
plain)
1
2
3
4
5
6
7
|
When (/^I hover over the add new button$/) do |selector|
page.execute_script("$('.add-new').trigger('mouseover')")
end
Then (/^I should see a "([^"]*)" caption on the add new button"$/) do |caption|
page.find(:xpath, "//*[@class='add-new']/a/span").should have_content(caption)
end
|