Created
January 23, 2020 22:08
-
-
Save Pchelolo/fba8830f7b9d1f47121454a4184fd1f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/REST/PageHistory.js b/test/REST/PageHistory.js | |
index 5ec9a9e..df15ee6 100644 | |
--- a/test/REST/PageHistory.js | |
+++ b/test/REST/PageHistory.js | |
@@ -89,6 +89,7 @@ describe('Page History', () => { | |
describe('Revision deletion and un-deletion', async () => { | |
it('Should get total number of edits and editors when edits are hidden and shown', async () => { | |
const { editOne } = await setupDeletedPage(); | |
+ await utils.sleep(); | |
// Populate cache | |
const { body, status } = await client.get(`/page/${titleToDelete}/history/counts/edits`); | |
@@ -106,6 +107,8 @@ describe('Page History', () => { | |
}, | |
'POST' | |
); | |
+ await utils.sleep(); | |
+ | |
const revHideEdits = await client.get(`/page/${titleToDelete}/history/counts/edits`); | |
assert.equal(revHideEdits.status, 200); | |
assert.deepEqual(revHideEdits.body, { count: 1, limit: false }, 'Edit count of 1 after hiding a revision'); | |
@@ -125,6 +128,8 @@ describe('Page History', () => { | |
}, | |
'POST' | |
); | |
+ await utils.sleep(); | |
+ | |
const revShowEdits = await client.get(`/page/${titleToDelete}/history/counts/edits`); | |
assert.equal(revShowEdits.status, 200); | |
assert.deepEqual(revShowEdits.body, { count: 2, limit: false }, 'Edit count of 2 after un-hiding the hidden revision'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment