2016-07-04 16:26:13 +00:00
|
|
|
Given(/^I hover over revision (\d+)$/) do |index|
|
2017-03-08 11:24:05 +00:00
|
|
|
on(DiffPage).revisionslider_rev(index.to_i).hover
|
2016-07-04 16:26:13 +00:00
|
|
|
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|
|
2018-08-14 07:04:02 +00:00
|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_present).to be_present
|
2016-07-04 16:26:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^no tooltip should be present for revision (\d+)$/) do |index|
|
2017-02-28 12:03:53 +00:00
|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_not_present).not_to be_present
|
2017-03-08 11:24:05 +00:00
|
|
|
end
|