mediawiki-skins-MinervaNeue/tests/selenium/specs/diff.js
Jan Drewniak 6bd240389e Adding "diff.feature" selenium test
Bug: T219920
Change-Id: I34b5301a274fe90a7a2db58a8bec2b9398d998b6
2019-04-10 23:15:37 +00:00

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' );
} );
} );