-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Click is not handled in Clarity data grid filter #24636
Comments
It also does not work when you change the code to:
but it works when you trigger the click twice (one time via
|
Thanks for reporting this, I see you have a workaround for now. Not a very satisfying one though. I'm routing this to the e2e team to investigate further, since you've provided a consistent reproduction. Notes from my debugging:
When I modified the DOM to include just a plain text node, we got this result, which seems to say the button itself is not
|
I found out that sometime the click actually works - which breaks the workaround. So, I've fixed the workaround with:
|
Current behavior
The
click()
on the filter icon on a Clarity data grid will not trigger a click event.Desired behavior
cy.get(".datagrid-filter-toggle").first().click();
should trigger the click event and open the filter dialogTest code to reproduce
Repository: https://github.com/derkoe/cypress-clarity-datagrid-issue
Cypress Version
10.11.0
Node version
v16.18.1
Operating System
Linux
Debug Logs
Debug log was too big - I commited it into the repository:
https://github.com/derkoe/cypress-clarity-datagrid-issue/blob/909739e582bbfb899427068dcd981290bd9ace67/debug.log
Other
The event handler is an Angular
@HostListener
- here is the code https://github.com/vmware-clarity/ng-clarity/blob/15caf8e81fc46e49a8189aa6cf46c9cc49449a45/projects/angular/src/utils/popover/popover-open-close-button.ts#L31The text was updated successfully, but these errors were encountered: