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

fix(action-menu): clicking an action menu item should call click event. #8627

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

driskull
Copy link
Member

@driskull driskull commented Jan 19, 2024

Related Issue: #8577 #8628

Summary

  • This reverts commit ccfbd0c.
  • Adds test

…8577)"

This reverts commit ccfbd0c.

# Conflicts:
#	packages/calcite-components/src/components/action-menu/action-menu.e2e.ts
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Jan 19, 2024
@driskull driskull marked this pull request as ready for review January 19, 2024 21:50
@driskull driskull requested a review from a team as a code owner January 19, 2024 21:50
@driskull driskull added low risk Issues with low risk for consideration in low risk milestones skip visual snapshots Pull requests that do not need visual regression testing. labels Jan 19, 2024
Copy link
Member

@jcfranco jcfranco left a 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());
Copy link
Member

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.

Copy link
Member Author

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.

@driskull driskull merged commit b12ef6b into main Jan 19, 2024
12 checks passed
@driskull driskull deleted the dris0000/revert-action-changes branch January 19, 2024 22:28
@geospatialem geospatialem mentioned this pull request Jan 23, 2024
6 tasks
geospatialem pushed a commit that referenced this pull request Jan 24, 2024
🤖 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. low risk Issues with low risk for consideration in low risk milestones skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants