mediawiki-extensions-Echo/tests/browser/features/step_definitions/flyout_steps.rb

15 lines
502 B
Ruby
Raw Normal View History

When(/^I click the notification flyout button$/) do
on(ArticlePage).flyout_link_element.when_present.click
end
Then(/^I do not see the notification flyout button$/) do
expect(on(ArticlePage).flyout_link_container_element).not_to be_visible
end
Then(/^I see the notification flyout$/) do
expect(on(ArticlePage).flyout_element.when_present).to be_visible
end
Then(/^I see the notification flyout button$/) do
expect(on(ArticlePage).flyout_link_container_element.when_present).to be_visible
end