mediawiki-extensions-Echo/tests/browser/features/step_definitions/flyout_steps.rb
jdlrobson bb6eef198c QA: Add some basic browser tests
yippee ki yay!
Tests basic functionality
1) presence of Echo button
2) behaviour of clicking Echo button

Change-Id: I6334264e1ee73a59da1e7b0c3f18a1d43b565f3a
2014-08-04 16:22:01 -07:00

16 lines
450 B
Ruby

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