MinervaNeue/tests/browser/features/talk.feature
jdlrobson 7fd843cd89 Fix talk overlay workflow
The talk overlay must subscribe to the creation of new topics
so that the list of topics in the talk overlay contains the
newly created topic. It does this by subscribing to the
talk-discussion-added event and forcing a route refresh when that
has completed.

Additional changes to browser tests:
1) QA: CSS selector changed for talk overlay
Since I42fd7b08c4b9d92dee549d06de8a0012ea037d28 the '.add' class
was removed from the talk button. This makes the browser test fail
but is a false positive.

2) One of the browser tests was using the same selector to mean
two different elements - the add discussion button in the talk overlay
is now clearly distinguish from the "add discussion" button that is blue
and appears at the bottom of talk pages

Change-Id: I935b3c5f37baf242c06585ae0e2f13d059b9c324
2019-02-25 14:14:53 -08:00

53 lines
1.9 KiB
Gherkin

@chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant
Feature: Talk
Background:
Given I am using the mobile site
@login
Scenario: Talk on a page that does exist
Given the page "Talk:Selenium talk test" exists
And I am logged into the mobile website
And the page "Selenium talk test" exists
When I click the talk button
Then I should see the talk overlay
@login @integration
Scenario: Talk on a page that doesn't exist (bug 64268)
Given I am logged into the mobile website
And I am on a page that does not exist
When I click the talk button
Then I should see the talk overlay
@smoke @integration @login
Scenario: Add discussion for talk page possible as logged in user
Given the page "Talk:Selenium talk test" exists
And I am logged into the mobile website
And the page "Selenium talk test" exists
When I click the talk button
Then there should be an add discussion button
@smoke @integration @login
Scenario: Add topic button shows on talk pages for logged in users
Given the page "Talk:Selenium talk test" exists
And I am logged into the mobile website
And I am on the "Talk:Selenium UI test" page
When I click the talk button
Then there should be a save discussion button
@integration
Scenario: A newly created topic appears in the list of topics immediately
Given the page "Talk:Selenium talk test" exists
And I am logged into the mobile website
And the page "Selenium talk test" exists
When I click the talk button
And I see the talk overlay
And no topic is present
And I add a topic called "New topic"
Then I should see the topic called "New topic" in the list of topics
Scenario: Add discussion on talk page not possible as logged out user
Given the page "Talk:Selenium talk test" exists
And the page "Selenium talk test" exists
Then there should be no talk button