From b85fdb68d7a57bf4af3d46d2db6d1d9f15c823e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Filipin?= Date: Wed, 16 Oct 2024 12:36:54 +0200 Subject: [PATCH] selenium: Delete tests disabled more than a year ago Tests in the three deleted files were all disabled in 2022 and 2023. Bug: T280652 Change-Id: I727acd43726075282f10811c4529daad91ad71c5 --- .../selenium/specs/editor_wikitext_nosave.js | 38 ------------------- tests/selenium/specs/search_loggedin.js | 36 ------------------ tests/selenium/specs/user_page.js | 23 ----------- 3 files changed, 97 deletions(-) delete mode 100644 tests/selenium/specs/editor_wikitext_nosave.js delete mode 100644 tests/selenium/specs/search_loggedin.js delete mode 100644 tests/selenium/specs/user_page.js diff --git a/tests/selenium/specs/editor_wikitext_nosave.js b/tests/selenium/specs/editor_wikitext_nosave.js deleted file mode 100644 index f25a4e8a7..000000000 --- a/tests/selenium/specs/editor_wikitext_nosave.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -const { - iAmOnAPageThatDoesNotExist, iClickTheBrowserBackButton, - iClickTheOverlayCloseButton, iDoNotSeeAnOverlay, - iAmLoggedIntoTheMobileWebsite - } = require( '../features/step_definitions/common_steps' ), - { - iClickTheEditButton, iSeeTheWikitextEditorOverlay - } = require( '../features/step_definitions/editor_steps' ); - -// @chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant @login -describe( 'Wikitext Editor', () => { - - beforeEach( async () => { - await iAmLoggedIntoTheMobileWebsite(); - await iAmOnAPageThatDoesNotExist(); - } ); - - // @smoke - // Skipped on 2022-12-07 in 865667 because of T313775 - it.skip( 'Closing editor (overlay button)', () => { - iClickTheEditButton(); - iSeeTheWikitextEditorOverlay(); - iClickTheOverlayCloseButton(); - iDoNotSeeAnOverlay(); - } ); - - // FIXME T348539 - // Skipped on 2023-11-27 in 977779 because of T348539 - it.skip( 'Closing editor (browser button)', async () => { - await iClickTheEditButton(); - await iSeeTheWikitextEditorOverlay(); - await iClickTheBrowserBackButton(); - await iDoNotSeeAnOverlay(); - } ); - -} ); diff --git a/tests/selenium/specs/search_loggedin.js b/tests/selenium/specs/search_loggedin.js deleted file mode 100644 index 3c849fee6..000000000 --- a/tests/selenium/specs/search_loggedin.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -const { - pageExists, iShouldSeeAToastNotification, - iAmUsingMobileScreenResolution, - iAmUsingTheMobileSite, - iAmLoggedIntoTheMobileWebsite, - iAmOnPage - } = require( '../features/step_definitions/common_steps' ), - { - iClickTheSearchIcon, - iTypeIntoTheSearchBox, - iClickASearchWatchstar, - iSeeTheSearchOverlay - } = require( '../features/step_definitions/search_steps' ); - -// @test2.m.wikipedia.org @vagrant @login -describe( 'Search', () => { - // FIXME: T334634 - // Skipped on 2023-11-27 in 977621 because of T334634 - it.skip( 'Clicking on a watchstar toggles the watchstar', async () => { - await iAmUsingTheMobileSite(); - await pageExists( 'Selenium search test' ); - await iAmLoggedIntoTheMobileWebsite(); - await iAmOnPage( 'Main Page' ); - await iAmUsingMobileScreenResolution(); - await iClickTheSearchIcon(); - await iSeeTheSearchOverlay(); - await iTypeIntoTheSearchBox( 'Selenium search tes' ); - // This pause statement is a temporary bandaid until we figure a bettery dynamic sync - // eslint-disable-next-line wdio/no-pause - await browser.pause( 1000 ); - await iClickASearchWatchstar(); - await iShouldSeeAToastNotification(); - } ); -} ); diff --git a/tests/selenium/specs/user_page.js b/tests/selenium/specs/user_page.js deleted file mode 100644 index ce4dba32d..000000000 --- a/tests/selenium/specs/user_page.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -const { iAmUsingTheMobileSite } = require( '../features/step_definitions/common_steps' ), - { iVisitMyUserPage, iShouldBeOnMyUserPage, - thereShouldBeALinkToMyContributions, thereShouldBeALinkToMyTalkPage - } = require( '../features/step_definitions/user_page_steps' ); - -// @chrome @firefox @login @test2.m.wikipedia.org @vagrant -describe( 'User:', () => { - - beforeEach( async () => { - await iAmUsingTheMobileSite(); - await iVisitMyUserPage(); - } ); - - // @en.m.wikipedia.beta.wmflabs.org - // Skipped on 2023-04-11 in 905565 because of T293084 - it.skip( 'Check components in user page', async () => { - await iShouldBeOnMyUserPage(); - await thereShouldBeALinkToMyTalkPage(); - await thereShouldBeALinkToMyContributions(); - } ); -} );