2016-07-04 14:43:47 +00:00
|
|
|
Then(/^The forward arrow should be disabled/) do
|
2016-08-05 08:45:37 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element.class_name).to match 'oo-ui-widget-disabled'
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
2016-08-05 08:45:37 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element.class_name).to match 'oo-ui-widget-disabled'
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
2016-08-05 08:45:37 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element.class_name).not_to match 'oo-ui-widget-disabled'
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
2016-08-05 08:45:37 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element.class_name).not_to match 'oo-ui-widget-disabled'
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I click on the forward arrow$/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
on(DiffPage).revisionslider_timeline_forwards_element.when_visible.click
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I click on the backward arrow$/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
on(DiffPage).revisionslider_timeline_backwards_element.when_visible.click
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|