mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
edd9ed4dcb
Change-Id: Ie0f7ea20c9f79a005a253b41c120ed40d884a1b8
24 lines
799 B
Ruby
24 lines
799 B
Ruby
Then(/^The forward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_disabled_element).to be_visible
|
|
end
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_disabled_element).to be_visible
|
|
end
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element).to be_visible
|
|
end
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element).to be_visible
|
|
end
|
|
|
|
Given(/^I click on the forward arrow$/) do
|
|
on(DiffPage).revisionslider_timeline_forwards_element.when_visible.click
|
|
end
|
|
|
|
Given(/^I click on the backward arrow$/) do
|
|
on(DiffPage).revisionslider_timeline_backwards_element.when_visible.click
|
|
end
|