2016-10-07 14:28:43 +00:00
|
|
|
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
|
2016-08-31 15:50:07 +00:00
|
|
|
on(DiffPage).revisionslider_help_close_start_element.when_visible.click
|
2016-10-07 14:28:43 +00:00
|
|
|
end
|
2016-06-29 10:52:05 +00:00
|
|
|
|
2016-10-07 14:28:43 +00:00
|
|
|
When(/^I have closed the help dialog at the end/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
on(DiffPage).revisionslider_help_close_end_element.when_visible.click
|
2016-06-29 10:52:05 +00:00
|
|
|
end
|
|
|
|
|
2016-10-07 14:28:43 +00:00
|
|
|
When(/^I have moved to the next step$/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
on(DiffPage).revisionslider_help_next_element.when_visible.click
|
2016-06-29 10:52:05 +00:00
|
|
|
end
|
|
|
|
|
2016-10-07 14:28:43 +00:00
|
|
|
When (/^I wait until help dialog is hidden$/) do
|
|
|
|
step 'The help dialog is hidden'
|
|
|
|
end
|
|
|
|
|
2016-07-04 14:43:47 +00:00
|
|
|
Given(/^The help dialog is hidden$/) do
|
|
|
|
on(DiffPage).wait_for_help_dialog_to_hide
|
|
|
|
end
|
|
|
|
|
2016-06-29 10:52:05 +00:00
|
|
|
Then(/^The help dialog should be visible/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
expect(on(DiffPage).revisionslider_help_dialog_element.when_visible).to be_visible
|
2016-06-29 10:52:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^The help dialog should not be present/) do
|
2016-08-31 15:50:07 +00:00
|
|
|
expect(on(DiffPage).revisionslider_help_dialog_element.when_not_visible).not_to be_visible
|
2016-06-29 10:52:05 +00:00
|
|
|
end
|