mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
2c6bd11eda
Introduced when_visible where it might be usefull to avoid flacky browser-tests. Change-Id: I2c8c58aae1bc859062395a1795513d445ecb37f8
23 lines
906 B
Ruby
23 lines
906 B
Ruby
Then(/^The forward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element.class_name).to match 'oo-ui-widget-disabled'
|
|
end
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element.class_name).to match 'oo-ui-widget-disabled'
|
|
end
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element.class_name).not_to match 'oo-ui-widget-disabled'
|
|
end
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element.class_name).not_to match 'oo-ui-widget-disabled'
|
|
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 |