-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix(action-menu): clicking an action menu item should call click event. #8627
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥
expect(actions[1].getAttribute(activeAttr)).toBe(null); | ||
expect(actions[2].getAttribute(activeAttr)).toBe(null); | ||
|
||
await page.$eval("calcite-action", (el: HTMLCalciteActionElement) => el.click()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why this is calling click
directly vs clicking via the E2E APIs? If so, can you add an explainer comment, otherwise, I'd suggest await page.click("calcite-action");
to simplify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it wasn't triggering the closing of the menu when await page.click("calcite-action")
was used.
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.3.0</summary> ## [2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-01-24) ### Features * **action-bar, action-pad, block, flow-item, panel:** Add `overlayPositioning` prop for built-in menus ([#8633](#8633)) ([714b889](714b889)) * **tab:** Add `--calcite-tab-content-block-padding` to override built-in block-padding ([#8629](#8629)) ([7dae525](7dae525)) ### Bug Fixes * **action-menu:** Clicking an action menu item should call click event. ([#8627](#8627)) ([b12ef6b](b12ef6b)) * **list-item:** Always show hover and pointer styling ([#8622](#8622)) ([4a8a91a](4a8a91a)) </details> <details><summary>@esri/calcite-components-angular: 2.3.0</summary> ## [2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-01-24) ### Miscellaneous Chores * **@esri/calcite-components-angular:** Synchronize undefined versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from ^2.3.0-next.1 to ^2.3.0 </details> <details><summary>@esri/calcite-components-react: 2.3.0</summary> ## [2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-01-24) ### Miscellaneous Chores * **@esri/calcite-components-react:** Synchronize undefined versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from ^2.3.0-next.1 to ^2.3.0 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Related Issue: #8577 #8628
Summary