mediawiki-skins-MinervaNeue/tests/selenium/specs/talk.js
Željko Filipin 436bf80bd8 selenium: Delete tests disabled for more than 1 year
'Redirects' was disabled by Edward Tadros in fbd373b (2021-01-15).

'A newly created topic appears in the list of topics' was disabled by
Jon Robson in d4828b2 (2020-09-24).

Bug: T280652
Change-Id: I63fb62c0c2871ff2713643285cd6e5d878684f83
2022-02-16 15:58:00 +01:00

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( 'Add discussion button shows on talk pages for logged in users', () => {
iAmLoggedIntoTheMobileWebsite();
iAmOnPage( 'Talk:Selenium talk test' );
thereShouldBeAnAddDiscussionButton();
} );
// @smoke @login
it( 'Add discussion for talk page possible as logged in user', () => {
iAmLoggedIntoTheMobileWebsite();
iAmOnPage( 'Talk:Selenium talk test' );
iClickTheAddTalkButton();
thereShouldBeASaveDiscussionButton();
} );
} );