api-testing: Adjust DiffCompare expected outcome to cope with new wikidiff2 output

The library now adds 'diff-side-added' and 'diff-side-deleted'.

Bug: T292676
Depends-On: If4bc60c35403799de4e330103d8aaa6f039d96fe
Change-Id: Id92aee4029f008402d9d331876c81fe2263580a7
This commit is contained in:
James D. Forrester 2021-10-06 15:21:02 -07:00 committed by Jforrester
parent 92b52bfc07
commit c2b52ea1fb

View file

@ -36,12 +36,12 @@ describe( 'Diff Compare with Variables', function () {
it( 'should compare revisions 1 and 4', async () => {
const compareRevisions = await wikiuser.action( 'compare', { fromrev: variables.revision1, torev: variables.revision4 } );
assert.match( compareRevisions.compare[ '*' ], /<td class=.diff-addedline.>.*\* Two/ );
assert.match( compareRevisions.compare[ '*' ], /<td class=.diff-addedline.*>.*\* Two/ );
} );
it( 'should compare revisions 3 and 4', async () => {
const compareRevisions = await wikiuser.action( 'compare', { fromrev: variables.revision3, torev: variables.revision4 } );
assert.match( compareRevisions.compare[ '*' ], /<td class=.diff-deletedline.>.*\* Three/ );
assert.match( compareRevisions.compare[ '*' ], /<td class=.diff-deletedline.*>.*\* Three/ );
} );
} );