mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-27 06:02:54 +00:00
187e1e5194
- added sleep to let scripts load - changed cookie setting to use vanilla JS - replace deprecated visible methods - fixed element definitions - fixed indentation - removed unused code Change-Id: I21047f7c529eee7e22f84fe1023c9e23b74cffa0
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_present
|
|
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
|