mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
30 lines
850 B
JavaScript
30 lines
850 B
JavaScript
|
const { iAmOnAPageThatHasTheFollowingEdits
|
||
|
} = require( '../features/step_definitions/create_page_api_steps' ),
|
||
|
{
|
||
|
iAmLoggedIntoTheMobileWebsite
|
||
|
} = require( '../features/step_definitions/common_steps' ),
|
||
|
{
|
||
|
iShouldSeeAddedContent, iShouldSeeRemovedContent
|
||
|
} = require( '../features/step_definitions/diff_steps' ),
|
||
|
{
|
||
|
iOpenTheLatestDiff,
|
||
|
iClickOnTheHistoryLinkInTheLastModifiedBar
|
||
|
} = require( '../features/step_definitions/history_steps' );
|
||
|
|
||
|
describe( 'Page diff', () => {
|
||
|
it( 'Added and removed content', () => {
|
||
|
iAmLoggedIntoTheMobileWebsite();
|
||
|
iAmOnAPageThatHasTheFollowingEdits( {
|
||
|
rawTable: [
|
||
|
[ ' text ' ],
|
||
|
[ ' ABC DEF ' ],
|
||
|
[ ' ABC GHI ' ]
|
||
|
]
|
||
|
} );
|
||
|
iClickOnTheHistoryLinkInTheLastModifiedBar();
|
||
|
iOpenTheLatestDiff();
|
||
|
iShouldSeeAddedContent( 'GHI' );
|
||
|
iShouldSeeRemovedContent( 'DEF' );
|
||
|
} );
|
||
|
} );
|