mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
6bd240389e
Bug: T219920 Change-Id: I34b5301a274fe90a7a2db58a8bec2b9398d998b6
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' );
|
|
} );
|
|
} );
|