mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-13 07:48:37 +00:00
f3a239aa24
- Applied the Given-When-Then rule - Added separate accessors for disabled arrow elements Bug: T146276 Change-Id: I0278ef607f96851ed69e7373b952f5d02139cb0c
24 lines
797 B
Ruby
24 lines
797 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
|