mediawiki-skins-MinervaNeue/tests/selenium/specs/user_page.js
Vaughn Walters dd3fb66258 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T293084
Change-Id: I5babbdadf21e9f951f69de93bfca5213a50965aa
(cherry picked from commit 677ce50b24)
2023-08-18 12:15:47 +01:00

23 lines
714 B
JavaScript

'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:<username>', () => {
beforeEach( async () => {
await iAmUsingTheMobileSite();
await iVisitMyUserPage();
} );
// </username>@en.m.wikipedia.beta.wmflabs.org
it.skip( 'Check components in user page', async () => {
await iShouldBeOnMyUserPage();
await thereShouldBeALinkToMyTalkPage();
await thereShouldBeALinkToMyContributions();
} );
} );