Tests: Add convenience function to pause execution without timing out

`await pause(this)` can be used to disable the test timeout and pause
execution so the UI state can be manually inspected
This commit is contained in:
Dan Stillman 2024-06-24 02:32:32 -04:00
parent 42d4064bac
commit aaac18ced6

View file

@ -374,6 +374,14 @@ function waitForNotifierEvent(event, type) {
return deferred.promise;
}
/**
* Hang tests for manual inspection
*/
async function pause(thisObj) {
thisObj.timeout(100000000);
await Zotero.Promise.delay(100000000);
}
/**
* Looks for windows with a specific URL.
*/