mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
edd9ed4dcb
Change-Id: Ie0f7ea20c9f79a005a253b41c120ed40d884a1b8
33 lines
987 B
Ruby
33 lines
987 B
Ruby
When(/^I have dismissed the help dialog$/) do
|
|
step 'I have closed the help dialog at the start'
|
|
step 'I wait until help dialog is hidden'
|
|
end
|
|
|
|
When(/^I have closed the help dialog at the start$/) do
|
|
on(DiffPage).revisionslider_help_close_start_element.when_present.click
|
|
end
|
|
|
|
When(/^I have closed the help dialog at the end/) do
|
|
on(DiffPage).revisionslider_help_close_end_element.when_present.click
|
|
end
|
|
|
|
When(/^I have moved to the next step$/) do
|
|
on(DiffPage).revisionslider_help_next_element.when_present.click
|
|
end
|
|
|
|
When(/^I wait until help dialog is hidden$/) do
|
|
step 'The help dialog is hidden'
|
|
end
|
|
|
|
Given(/^The help dialog is hidden$/) do
|
|
on(DiffPage).wait_for_help_dialog_to_hide
|
|
end
|
|
|
|
Then(/^The help dialog should be visible/) do
|
|
expect(on(DiffPage).revisionslider_help_dialog_element.when_present).to be_visible
|
|
end
|
|
|
|
Then(/^The help dialog should not be present/) do
|
|
expect(on(DiffPage).revisionslider_help_dialog_element.when_not_present).not_to be_present
|
|
end
|