mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
530688aa39
The step formerly know as "I come back from grabbing a cup of coffee" is replaced by a step that reloads the page a number of times, where that number may be set by the user. If the notification has arrived, the polling stops and the test continues. In practice with a local browser pointed to beta labs, the notification is arriving in plenty of time for the first page load and I do not see the page reloading at all. Change-Id: I95dd77d4f5525645e46244e40bfcd86e9124f3b1
41 lines
1.7 KiB
Gherkin
41 lines
1.7 KiB
Gherkin
@chrome @en.wikipedia.beta.wmflabs.org @firefox @login @test2.wikipedia.org
|
|
Feature: Notification types
|
|
|
|
# Scenarios which trigger notifications
|
|
Scenario: Someone links to a page I created
|
|
Given I am logged in with no notifications
|
|
And another user has linked to a page I created from another page
|
|
And I reload the page 5 times or until a notification shows up
|
|
When I am on the "Selenium Echo flyout test page" page
|
|
Then I have new notifications
|
|
|
|
Scenario: Mention message triggers notification
|
|
Given I am logged in with no notifications
|
|
And another user mentions me on the wiki
|
|
And I reload the page 5 times or until a notification shows up
|
|
When I am on the "Selenium Echo flyout test page" page
|
|
Then I have new notifications
|
|
|
|
Scenario: Talk page message triggers talk notification
|
|
Given I am logged in with no notifications
|
|
# And I do not have Flow boards enabled on the user talk namespace
|
|
And another user writes on my talk page
|
|
And I reload the page 5 times or until a notification shows up
|
|
When I am on the "Selenium Echo flyout test page" page
|
|
Then I have new notifications
|
|
|
|
Scenario: New user gets a sign up notification
|
|
Given I am logged in as a new user
|
|
And I am on the "Selenium Echo flyout test page" page
|
|
Then I have new notifications
|
|
|
|
Scenario: Page revert
|
|
# Too hard. Will do later.
|
|
|
|
# Scenarios which do not trigger notifications (but might be expected to)
|
|
Scenario: The @ message is not a keyword
|
|
Given I am logged in with no notifications
|
|
And another user @s me on "Talk:Echo at test"
|
|
When I am on the "Selenium Echo flyout test page" page
|
|
Then I have no new notifications
|