mediawiki-extensions-Echo/tests/browser/features/messages.feature
Cmcmahon 8f2681c01b QA update feature descriptions for messages test
Cucumber Scenario and Feature description are just plain text.
Instead of using comments, it is far better to describe in each
test step what should happen in each test step.

I believe I have described these test steps correctly. Please
advise if they need to be tweaked.

(The test itself seems to be fine, but feel free to review that
also)

Finally, since messages.feature uses the "I have no new notifications"
step, I updated those assertions for modern RSpec syntax

Change-Id: Ie884a85c1fc3f7045773a271a8d76fad6b0b3826
2014-09-24 11:50:18 -07:00

16 lines
682 B
Gherkin

@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
Feature: Scenarios that trigger notifications
Scenario: Mark all as unread
Given I am logged in with no notifications
And I have a Flow message that triggers an alert notification
And another user mentions me on the wiki
And I am on the "Selenium Echo flyout test page" page
And I have new notifications
And I click the notification flyout button
And I see the notification flyout
And I click for the Messages view
When I click the mark all as read button
And I am on the "Selenium Echo flyout test page" page
Then I have no new notifications