mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 11:26:26 +00:00
4961e32b53
"Then" steps should always contains RSpec assertions. In the past this meant using some version of the word "should", but the modern convention in RSpec is to use "expect()" as I did here. Change-Id: I1c438a310803e29c0985328a76d2ec08578e0cb0
15 lines
502 B
Ruby
15 lines
502 B
Ruby
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 |