MinervaNeue/tests/browser/features/talk.feature
jdlrobson b93b7eda7c Render add discussion button in PHP not JS
The talk page JavaScript progressively enhances an
existing button in the page.

Remove the frontend logic and rely entirely on whether
the button is in the page or not.

Additional change:
* The browser tests incorrectly suggest a user needs
5 edits to be able to use the talk feature. This is not
true. They just need to be logged in. Update that logic.

Bug: T167728
Change-Id: Iacedea30bdd0775b3d785db5b143abafd7a18b39
2017-10-16 22:35:11 +00: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
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
And there should be an add discussion button
When I click the talk button
Then there should be an add 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 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