2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-07-01 22:31:17 +00:00
|
|
|
const { iAmViewingAnUnwatchedPage } = require( '../features/step_definitions/create_page_api_steps' ),
|
2019-04-08 23:45:11 +00:00
|
|
|
{
|
|
|
|
iShouldSeeAToastNotificationWithMessage,
|
|
|
|
iAmLoggedIntoTheMobileWebsite
|
|
|
|
} = require( '../features/step_definitions/common_steps' ),
|
|
|
|
{
|
2019-07-01 22:31:17 +00:00
|
|
|
theWatchstarShouldBeSelected,
|
|
|
|
iClickTheWatchstar } = require( '../features/step_definitions/watch_steps' );
|
2019-04-08 23:45:11 +00:00
|
|
|
|
|
|
|
// @chrome @smoke @test2.m.wikipedia.org @login @vagrant
|
|
|
|
describe( 'Manage Watchlist', () => {
|
|
|
|
|
|
|
|
beforeEach( () => {
|
|
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
|
|
} );
|
|
|
|
|
|
|
|
it( 'Add an article to the watchlist', () => {
|
|
|
|
iAmViewingAnUnwatchedPage();
|
|
|
|
iClickTheWatchstar();
|
2019-09-19 21:19:07 +00:00
|
|
|
iShouldSeeAToastNotificationWithMessage( 'added' );
|
2019-04-08 23:45:11 +00:00
|
|
|
theWatchstarShouldBeSelected();
|
|
|
|
} );
|
|
|
|
} );
|