Why does queries.getByLabelText give me an error with the internal code while trying to run Lighthouse user flows #15606
-
I am trying to replicate the example code from the lighthouse documentation (https://github.com/GoogleChrome/lighthouse/blob/main/docs/user-flows.md) The code block I am interested in is complete user flow code. import {writeFileSync} from 'fs'; const {getDocument, queries} = pptrTestingLibrary; async function search(page) { // Setup the browser and Lighthouse. // Phase 1 - Navigate to the landing page. // Phase 2 - Interact with the page and submit the search form. // Phase 3 - Analyze the new state. // Phase 4 - Navigate to a detail page. // Get the comprehensive flow report. // Cleanup. TypeError: containerHandle.executionContext is not a function I have tested my code and found that the issue is on the lines where I run queries.getByLabelText and queries.getByText. However, I am not sure how to proceed from here. I am using lighthouse: 11.3.0, puppeteer: 21.5.1, and pptr-testing-library: 0.7.0. My package.json file is listed below in case it is relevant. { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like |
Beta Was this translation helpful? Give feedback.
Looks like
pptr-testing-library
is not compatible with the latest version of puppeteer #15607. We should update our docs, but you can still create a user flow withoutpptr-testing-library
.