Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light House: Save Trace File after audit #188

Open
varghesevarampi opened this issue Nov 7, 2022 · 1 comment
Open

Light House: Save Trace File after audit #188

varghesevarampi opened this issue Nov 7, 2022 · 1 comment

Comments

@varghesevarampi
Copy link

What would you like to see in the library?
Lighthouse saves the trace file when the saveAudits flag has been set to true. Ideally, we should be able to pass in saveAssets: true and this should generate back a trace file.

e.g. something like below:
`const lighthouseConfig = {
formFactor: 'desktop',
saveAssets: true,
screenEmulation: {
disabled: true,
},
}

cy.lighthouse(thresholds, lighthouseConfig);`

Why?
This is very useful in diagnosing why certain lighthouse reports have a skewed values of FCP,LCP etc. by looking at the trace.

Any other information that may help understanding the need
When run manually, lighthouse generates and option to view the original trace. The core light house produce allows saving trace by running the following command lighthouse https://airhorner.com/ --chrome-flags="--window-size=1280,700" --output-path=/Users/test/lighthouse --save-assets

image

@mfrachet
Copy link
Owner

From what I see, the flags are passed down to lighthouse. Isnt your config working? Can you provide a repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants