mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
ff00b6d9c5
Bug: T302993 Change-Id: I1cbe8367394fdee1c0a88d5dbe2bd00da0b74062
65 lines
1.6 KiB
JavaScript
65 lines
1.6 KiB
JavaScript
'use strict';
|
|
|
|
const
|
|
{
|
|
pageExists, iAmOnAPageThatDoesNotExist,
|
|
iAmUsingTheMobileSite,
|
|
iAmLoggedIntoTheMobileWebsite,
|
|
iAmOnPage
|
|
} = require( '../features/step_definitions/common_steps' ),
|
|
{
|
|
iClickTheAddTalkButton,
|
|
thereShouldBeASaveDiscussionButton,
|
|
thereShouldBeAnAddDiscussionButton,
|
|
thereShouldBeATalkTab,
|
|
thereShouldBeNoTalkButton
|
|
} = require( '../features/step_definitions/talk_steps' );
|
|
|
|
// @chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant
|
|
describe( 'Talk', () => {
|
|
|
|
before( () => {
|
|
pageExists( 'Talk:Selenium talk test' );
|
|
pageExists( 'Selenium talk test' );
|
|
} );
|
|
|
|
beforeEach( () => {
|
|
iAmUsingTheMobileSite();
|
|
} );
|
|
|
|
it( 'Talk button not visible as logged out user', () => {
|
|
iAmOnPage( 'Selenium talk test' );
|
|
thereShouldBeNoTalkButton();
|
|
} );
|
|
|
|
// @login
|
|
it( 'Talk tab visible as logged in user', () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnPage( 'Selenium talk test' );
|
|
thereShouldBeATalkTab();
|
|
} );
|
|
|
|
// @login
|
|
it( 'Talk on a page that doesn\'t exist (bug 64268)', () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnAPageThatDoesNotExist();
|
|
thereShouldBeATalkTab();
|
|
} );
|
|
|
|
// @smoke @login
|
|
it.skip( 'Add discussion button shows on talk pages for logged in users', () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnPage( 'Talk:Selenium talk test' );
|
|
thereShouldBeAnAddDiscussionButton();
|
|
} );
|
|
|
|
// @smoke @login
|
|
it.skip( 'Add discussion for talk page possible as logged in user', () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnPage( 'Talk:Selenium talk test' );
|
|
iClickTheAddTalkButton();
|
|
thereShouldBeASaveDiscussionButton();
|
|
} );
|
|
|
|
} );
|