mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
edd9ed4dcb
Change-Id: Ie0f7ea20c9f79a005a253b41c120ed40d884a1b8
16 lines
558 B
Ruby
16 lines
558 B
Ruby
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|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_present).to be_visible
|
|
end
|
|
|
|
Then(/^no tooltip should be present for revision (\d+)$/) do |index|
|
|
expect(on(DiffPage).revisionslider_tooltip(index.to_i).when_not_present).not_to be_present
|
|
end
|