2016-07-04 16:26:13 +00:00
|
|
|
Given(/^I hover over revision (\d+)$/) do |index|
|
|
|
|
on(DiffPage).revisionslider_rev(index.to_i).hover
|
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I hover over the revision (\d+) tooltip$/) do |index|
|
|
|
|
on(DiffPage).revisionslider_tooltip(index.to_i).hover
|
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^a tooltip should be present for revision (\d+)$/) do |index|
|
2016-08-29 10:44:29 +00:00
|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_visible).to be_visible
|
2016-07-04 16:26:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^no tooltip should be present for revision (\d+)$/) do |index|
|
2016-08-29 10:44:29 +00:00
|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_not_visible).not_to be_visible
|
2016-07-04 16:26:13 +00:00
|
|
|
end
|