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

bug(COMPONENT): MatExpansionPanelHarness #29454

Closed
FedeTommi opened this issue Jul 18, 2024 · 2 comments
Closed

bug(COMPONENT): MatExpansionPanelHarness #29454

FedeTommi opened this issue Jul 18, 2024 · 2 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@FedeTommi
Copy link

FedeTommi commented Jul 18, 2024

Is this a regression?

No response

The previous version in which this bug was not present was

No response

Description

The filters on MatExpansionPanelHarness seem to be not working correctly.

Reproduction

Run a test with the following content:

const expansionPanels = await loader.getHarness(MatExpansionPanelHarness.with({ disabled: true }));

Expected Behavior

I get a list of MatExpansionPanelHarness that are disabled

Actual Behavior

I get the error:

SyntaxError: '' is not a valid selector
at emit (/node_modules/nwsapi/src/nwsapi.js:575:17)
at Object._querySelectorAll [as select] (/node_modules/nwsapi/src/nwsapi.js:1491:9)
at HTMLDivElementImpl.querySelectorAll (node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js:78:26)
at HTMLDivElement.querySelectorAll (node_modules/jsdom/lib/jsdom/living/generated/Element.js:1119:58)
at Object.queryFn (node_modules/@angular/cdk/fesm2022/testing/testbed.mjs:622:39)
at TestbedHarnessEnvironment.getAllRawElements (node_modules/@angular/cdk/fesm2022/testing/testbed.mjs:770:41)

Environment

  • Angular: 18.1.1
  • CDK/Material: 18.1.1
  • Browser(s): -
  • Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu
@FedeTommi FedeTommi added the needs triage This issue needs to be triaged by the team label Jul 18, 2024
@crisbeto
Copy link
Member

This sounds like an issue nwsapi which aims to reimplement CSS selectors in JS.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants