You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This function is invoked before the first run of each URL under testmodule.exports=async(browser,urlUnderTest,allCollectOptions)=>{if(!urlUnderTest.includes('/app'))return;constpage=awaitbrowser.newPage();awaitpage.goto('http://localhost:3000/login');awaitpage.type('#username','test_user');awaitpage.type('#password','password');awaitpage.click('button');awaitpage.waitFor('.welcome-logged-in-user');}
The text was updated successfully, but these errors were encountered:
Should there be a similar construct for setting / tweaking the LH config based on the URL? For example, I am imagining wanting to clear cache in the general case, but for one URL set up auth and disable cache clearing.
Usage:
lhci collect --puppeteer-script=./path/to/script.js
The text was updated successfully, but these errors were encountered: