BlockingObserver: Re-enable in CI

This commit is contained in:
Abe Jellinek 2024-04-11 08:12:16 -07:00 committed by Dan Stillman
parent 35f5b19ffd
commit 5263c79ea8
2 changed files with 0 additions and 10 deletions

View file

@ -41,12 +41,6 @@ class BlockingObserver {
* @param {(uri: nsIURI) => boolean} shouldBlock
*/
constructor({ shouldBlock }) {
// TEMP: Disable in CI for now to avoid HTTP request failures
// https://github.com/zotero/zotero/issues/3962
if (Zotero.automatedTest) {
this.shouldBlock = () => false;
return;
}
this.shouldBlock = shouldBlock;
}

View file

@ -43,10 +43,6 @@ describe("HiddenBrowser", function() {
});
it("should prevent a remote request with blockRemoteResources", async function () {
// TEMP: Disable in CI for now to avoid HTTP request failures
// https://github.com/zotero/zotero/issues/3962
if (Zotero.automatedTest) this.skip();
let path = OS.Path.join(getTestDataDirectory().path, 'test-hidden.html');
let browser = new HiddenBrowser({ blockRemoteResources: true });
await browser.load(path);