Upgrade Puppeteer to the latest version as the page.off()
clean-up function isn't working in the current version
#6433
Labels
P1
Medium priority
QA: Eng
Requires specialized QA by an engineer
Type: Infrastructure
Engineering infrastructure & tooling
Feature Description
The clean-up function
page.off("request", requestHandler)
in theuseRequestInterception
utility function is not working in the current version of the puppeteer. This causes test failures when we invoke the clean-up function, which was returned from theuseRequestInterception
function. The bug was reported in the Puppeteer repository and was fixed in the latest version.We should upgrade to the latest version of Puppeteer, in which the above bug was fixed, and there are no breaking changes to our existing tests.
Due to the above issue, we introduced a workaround to intercept the
&_validate
requests in #5460.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
page.off("request", requestHandler)
clean-up function should properly remove request listeners from a page using the latest version of the puppeteer.useRequestInterception
before calling theactivateAMPWithMode
function.activateAMPWithMode
function should be modified to intercept the&_validate
requests.Implementation Brief
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: