2016-07-04 14:43:47 +00:00
|
|
|
Then(/^The forward arrow should be disabled/) do
|
2018-08-14 07:04:02 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_disabled_element.when_present).to be_present
|
|
|
|
end
|
2016-07-04 14:43:47 +00:00
|
|
|
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
2018-08-14 07:04:02 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_disabled_element.when_present).to be_present
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
2018-08-14 07:04:02 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element).to be_present
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
2018-08-14 07:04:02 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element).to be_present
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I click on the forward arrow$/) do
|
2018-06-29 07:49:09 +00:00
|
|
|
on(DiffPage).revisionslider_timeline_forwards_element.when_present.click
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I click on the backward arrow$/) do
|
2018-06-29 07:49:09 +00:00
|
|
|
on(DiffPage).revisionslider_timeline_backwards_element.when_present.click
|
2016-10-12 09:00:14 +00:00
|
|
|
end
|