| 1 |
'use strict'; |
| 2 |
|
| 3 |
const { iAmViewingAnUnwatchedPage } = require( '../features/step_definitions/create_page_api_steps' ), |
| 4 |
{ |
| 5 |
iShouldSeeAToastNotificationWithMessage, |
| 6 |
iAmLoggedIntoTheMobileWebsite |
| 7 |
} = require( '../features/step_definitions/common_steps' ), |
| 8 |
{ |
| 9 |
theWatchstarShouldBeSelected, |
| 10 |
iClickTheWatchstar } = require( '../features/step_definitions/watch_steps' ); |
| 11 |
|
| 12 |
|
| 13 |
describe( 'Manage Watchlist', () => { |
| 14 |
|
| 15 |
beforeEach( async () => { |
| 16 |
await iAmLoggedIntoTheMobileWebsite(); |
| 17 |
} ); |
| 18 |
|
| 19 |
it( 'Add an article to the watchlist', async () => { |
| 20 |
await iAmViewingAnUnwatchedPage(); |
| 21 |
await iClickTheWatchstar(); |
| 22 |
await iShouldSeeAToastNotificationWithMessage( 'added' ); |
| 23 |
await theWatchstarShouldBeSelected(); |
| 24 |
} ); |
| 25 |
} ); |