Flaky test failure: One Click Allowlisting - unblocks when allowlist is clicked
2) One Click Allowlisting
unblocks when allowlist is clicked:
Error: expect(received).toBeUndefined()
Received: {"documentId": "7E874B5028C1B4FBDB16B19152347F16", "documentLifecycle": "active", "error": "net::ERR_BLOCKED_BY_CLIENT", "frameId": 0, "frameType": "outermost_frame", "fromCache": false, "initiator": "http://localhost:3000", "method": "GET", "parentFrameId": -1, "requestId": "425", "tabId": 1223158867, "timeStamp": 1655802598096.53, "type": "image", "url": "http://localhost:3000/image.png"}
https://gitlab.com/eyeo/adblockplus/abc/webext-sdk/-/jobs/2617638599
In the 1CA test, we load the page, click the "allowlist" button, then reload. The failing assertion happens after other signifiers that allowlisting has worked have already been checked. All 1CA tests do a hard reload, but there may be some bug or race condition in how we manage the expected blocking on reloads.
Edited by Justin Wernick