2017-06-09 19:12:53 +00:00
|
|
|
@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
|
2017-09-28 20:06:39 +00:00
|
|
|
And I am logged into the mobile website
|
2017-06-09 19:12:53 +00:00
|
|
|
And the page "Selenium talk test" exists
|
|
|
|
When I click the talk button
|
|
|
|
Then I should see the talk overlay
|
|
|
|
|
2018-03-08 22:39:50 +00:00
|
|
|
@login @integration
|
2017-06-09 19:12:53 +00:00
|
|
|
Scenario: Talk on a page that doesn't exist (bug 64268)
|
2017-09-28 20:06:39 +00:00
|
|
|
Given I am logged into the mobile website
|
2017-06-09 19:12:53 +00:00
|
|
|
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
|
2017-09-28 20:06:39 +00:00
|
|
|
Scenario: Add discussion for talk page possible as logged in user
|
2017-06-09 19:12:53 +00:00
|
|
|
Given the page "Talk:Selenium talk test" exists
|
2017-09-28 20:06:39 +00:00
|
|
|
And I am logged into the mobile website
|
2017-06-09 19:12:53 +00:00
|
|
|
And the page "Selenium talk test" exists
|
|
|
|
When I click the talk button
|
|
|
|
Then there should be an add discussion button
|
|
|
|
|
2017-09-28 20:06:39 +00:00
|
|
|
@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
|
|
|
|
|
2017-06-09 19:12:53 +00:00
|
|
|
@integration
|
|
|
|
Scenario: A newly created topic appears in the list of topics immediately
|
|
|
|
Given the page "Talk:Selenium talk test" exists
|
2017-09-28 20:06:39 +00:00
|
|
|
And I am logged into the mobile website
|
2017-06-09 19:12:53 +00:00
|
|
|
And the page "Selenium talk test" exists
|
|
|
|
When I click the talk button
|
2017-12-07 23:04:36 +00:00
|
|
|
And I see the talk overlay
|
2017-06-09 19:12:53 +00:00
|
|
|
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
|