mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-26 05:32:57 +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
24 lines
821 B
Ruby
24 lines
821 B
Ruby
Then(/^The forward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_disabled_element.when_present).to be_present
|
|
end
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_disabled_element.when_present).to be_present
|
|
end
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element).to be_present
|
|
end
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element).to be_present
|
|
end
|
|
|
|
Given(/^I click on the forward arrow$/) do
|
|
on(DiffPage).revisionslider_timeline_forwards_element.when_present.click
|
|
end
|
|
|
|
Given(/^I click on the backward arrow$/) do
|
|
on(DiffPage).revisionslider_timeline_backwards_element.when_present.click
|
|
end
|