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

refactor(action-group, action-menu): add classes for E2E tests #9059

Merged
merged 12 commits into from
Apr 12, 2024

Conversation

alisonailea
Copy link
Contributor

Related Issue: #7180

Summary

Should be merged after #9027

This adds a container class and an expand class to the shadowDom which are necessary for correctly targeting elements in E2E tests.

commit 6b78dfb
Author: Ali Stump <astump@esri.com>
Date:   Mon Apr 1 15:10:11 2024 -0700

    refactor: test utils to simplify assertThemedProps

commit e777ea3
Author: Ali Stump <astump@esri.com>
Date:   Mon Apr 1 12:17:32 2024 -0700

    docs: add jsdocs to common test utils

commit c2244da
Author: Ali Stump <astump@esri.com>
Date:   Mon Apr 1 12:03:21 2024 -0700

    tests: test theme-ing for stateful tokens

commit ec2ec64
Author: Ali Stump <astump@esri.com>
Date:   Wed Mar 27 12:26:56 2024 -0700

    test: allow theme tests to penetrate subcomponent shadow dom

commit 2e0e1d8
Author: Ali Stump <astump@esri.com>
Date:   Tue Mar 26 16:52:00 2024 -0700

    chore: update common theme-ing tests

commit e1d204f
Author: Ali Stump <astump@esri.com>
Date:   Mon Mar 25 15:32:01 2024 -0700

    chore(common): add non-color values for tokenList in themed

commit 2a9472c
Author: Ali Stump <astump@esri.com>
Date:   Mon Mar 25 15:27:59 2024 -0700

    chore(common): add themed common test
@alisonailea alisonailea requested a review from a team as a code owner April 3, 2024 22:41
@alisonailea alisonailea marked this pull request as draft April 3, 2024 22:42
@@ -65,11 +65,174 @@ describe("calcite-action-group", () => {
<calcite-action id="banana" slot="menu-actions" text="Banana" icon="banana"></calcite-action>
</calcite-action-group>`);
await page.waitForChanges();
const container = await page.find(`calcite-action-group >>> .${CSS.container}`);
const container = await page.find(`calcite-action-group >>> ..${CSS.container}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tooo many dots :)

alisonailea and others added 3 commits April 4, 2024 13:53
…components into astump/7180-fix-action-group

# Conflicts:
#	packages/calcite-components/src/tests/commonTests.ts
#	packages/calcite-components/src/tests/utils.ts
@alisonailea alisonailea marked this pull request as ready for review April 9, 2024 18:43
@alisonailea alisonailea requested review from driskull and a team April 9, 2024 18:43
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.

Aside from removal of <Fragment>, this LGTM!

@@ -323,9 +323,11 @@ export class ActionMenu implements LoadableComponent {
render(): VNode {
return (
<Fragment>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alisonailea alisonailea merged commit 32041e5 into epic/7180-component-tokens Apr 12, 2024
4 checks passed
@alisonailea alisonailea deleted the astump/7180-fix-action-group branch April 12, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants