Skip to content

Commit c3dfc00

Browse files
committed
Translator tests: Delay a little before detection even if not deferred
The new HiddenBrowser is sometimes just a little too fast, so we need to slow it down artificially for detection to work in all cases where it worked before.
1 parent e558282 commit c3dfc00

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

testTranslators/translatorTester.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function (test, testDone
429429
+ " second(s) for page content to settle");
430430
await Zotero.Promise.delay(Zotero_TranslatorTester.DEFER_DELAY);
431431
}
432+
else {
433+
// Wait just a bit for things to settle
434+
await Zotero.Promise.delay(100);
435+
}
432436

433437
let doc = await HiddenBrowser.getDocument(browser);
434438

0 commit comments

Comments
 (0)