2016-07-04 14:43:47 +00:00
|
|
|
Then(/^The forward arrow should be disabled/) do
|
2016-10-12 09:00:14 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_disabled_element).to be_visible
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The backward arrow should be disabled/) do
|
2016-10-12 09:00:14 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_disabled_element).to be_visible
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The forward arrow should be enabled/) do
|
2016-10-12 09:00:14 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_forwards_element).to be_visible
|
2016-07-04 14:43:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The backward arrow should be enabled/) do
|
2016-10-12 09:00:14 +00:00
|
|
|
expect(on(DiffPage).revisionslider_timeline_backwards_element).to be_visible
|
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-10-12 09:00:14 +00:00
|
|
|
end
|