2014-08-04 23:07:37 +00:00
|
|
|
When(/^I click the notification flyout button$/) do
|
2015-03-09 21:53:17 +00:00
|
|
|
# Sleep works around Chrome 40 issue that began
|
|
|
|
# ~2015-03-04
|
|
|
|
sleep 1
|
2014-08-04 23:07:37 +00:00
|
|
|
on(ArticlePage).flyout_link_element.when_present.click
|
|
|
|
end
|
|
|
|
|
2014-09-22 22:00:35 +00:00
|
|
|
Then(/^I do not see the notification flyout button$/) do
|
2014-09-23 21:12:27 +00:00
|
|
|
expect(on(ArticlePage).flyout_link_container_element).not_to be_visible
|
2014-09-22 22:00:35 +00:00
|
|
|
end
|
|
|
|
|
2014-08-04 23:07:37 +00:00
|
|
|
Then(/^I see the notification flyout$/) do
|
2014-09-23 21:12:27 +00:00
|
|
|
expect(on(ArticlePage).flyout_element.when_present).to be_visible
|
2014-08-04 23:07:37 +00:00
|
|
|
end
|
2014-09-22 22:00:35 +00:00
|
|
|
|
|
|
|
Then(/^I see the notification flyout button$/) do
|
2014-09-23 21:12:27 +00:00
|
|
|
expect(on(ArticlePage).flyout_link_container_element.when_present).to be_visible
|
2014-11-07 21:28:03 +00:00
|
|
|
end
|