mediawiki-extensions-Revisi.../tests/browser/features/support/step_definitions/timeline.rb

24 lines
799 B
Ruby
Raw Normal View History

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