mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
32 lines
1,007 B
JavaScript
32 lines
1,007 B
JavaScript
|
const { iAmViewingAWatchedPage,
|
||
|
iAmViewingAnUnwatchedPage } = require( '../features/step_definitions/create_page_api_steps' ),
|
||
|
{
|
||
|
iShouldSeeAToastNotificationWithMessage,
|
||
|
iAmLoggedIntoTheMobileWebsite
|
||
|
} = require( '../features/step_definitions/common_steps' ),
|
||
|
{
|
||
|
theWatchstarShouldNotBeSelected, theWatchstarShouldBeSelected,
|
||
|
iClickTheWatchstar, iClickTheUnwatchStar } = require( '../features/step_definitions/watch_steps' );
|
||
|
|
||
|
// @chrome @smoke @test2.m.wikipedia.org @login @vagrant
|
||
|
describe( 'Manage Watchlist', () => {
|
||
|
|
||
|
beforeEach( () => {
|
||
|
iAmLoggedIntoTheMobileWebsite();
|
||
|
} );
|
||
|
|
||
|
it( 'Remove an article from the watchlist', () => {
|
||
|
iAmViewingAWatchedPage();
|
||
|
iClickTheUnwatchStar();
|
||
|
iShouldSeeAToastNotificationWithMessage( 'Removed' );
|
||
|
theWatchstarShouldNotBeSelected();
|
||
|
} );
|
||
|
|
||
|
it( 'Add an article to the watchlist', () => {
|
||
|
iAmViewingAnUnwatchedPage();
|
||
|
iClickTheWatchstar();
|
||
|
iShouldSeeAToastNotificationWithMessage( 'Added' );
|
||
|
theWatchstarShouldBeSelected();
|
||
|
} );
|
||
|
} );
|