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

All Categories still appears eventhough I specify only one cateory #16208

Closed
yasserhussien opened this issue Oct 1, 2024 · 4 comments
Closed
Assignees

Comments

@yasserhussien
Copy link

yasserhussien commented Oct 1, 2024

const flow = await startFlow(page, {
config: lighthouseConfig,
onlyCategories: ["performance"],
throttlingMethod: "provided" // Provided by environment
}
});
in the generated report in the summary I still see all categories, but If I click to see the details information I see only the performance category
image

@yasserhussien
Copy link
Author

yasserhussien commented Oct 1, 2024

Hi @adamraine
is this a known issue for you?

@ChristopherPHolder
Copy link
Contributor

ChristopherPHolder commented Oct 6, 2024

Hi @yasserhussien

I am not sure i understand what the issue is. What version of lighthouse are you using?

But it seems like there is a missmatch in our configs, I am using "^12.2.1" in this example:

const flow = await startFlow(page,{
    flags: {
        onlyCategories: ["performance"],
    }
});

As you can see the onlyCategories is inside of flags.

And results are what you would expected:

image

And in the step details i only have the performance audit.

Can you provide a minimal reproduction?

@yasserhussien
Copy link
Author

yasserhussien commented Oct 7, 2024

Hi @ChristopherPHolder
I have the same code like you, and the same result like the image
I want to see only the performance category without the other categories ( without SEO, Best Practice)
and in your case if you want to see the detailed information not the summary you will see only performance category

@adamraine
Copy link
Member

Yeah Lighthouse just shows the category names in the table header, but doesn't actually run them. This is working as expected.

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

No branches or pull requests

5 participants