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:
parent
92b52bfc07
commit
c2b52ea1fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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/ );
|
||||
} );
|
||||
} );
|
||||
|
|
|
|||
Loading…
Reference in a new issue