diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2021-10-07 15:51:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2021-10-07 15:51:26 +0000 |
commit | 179b099f4da126086f547344f3d8c647acd008d5 (patch) | |
tree | b9222cc1a9a0a89c91d9dcb4123c3ebdd81820eb | |
parent | 0faf5fb40e77162e913930e73457578ebd5f79e7 (diff) | |
parent | f02e2cea9bb03ad36e3bf68ade7a14df16bf3ffb (diff) |
Merge "api-testing: Adjust DiffCompare expected outcome to cope with new wikidiff2 output" into wmf/1.38.0-wmf.2wmf/1.38.0-wmf.2
-rw-r--r-- | tests/api-testing/action/DiffCompare.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api-testing/action/DiffCompare.js b/tests/api-testing/action/DiffCompare.js index f3f88b3da025..4e72c36fc163 100644 --- a/tests/api-testing/action/DiffCompare.js +++ b/tests/api-testing/action/DiffCompare.js @@ -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/ ); } ); } ); |