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

test(themed): simplify the test #10829

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

alisonailea
Copy link
Contributor

Summary

We only need to test that the expected value is set somewhere in the computed style no get the exact styleString

# Conflicts:
#	packages/calcite-components/src/tests/commonTests/themed.ts
@@ -374,7 +374,7 @@ async function assertThemedProps(page: E2EPage, options: TestTarget): Promise<vo
const isLinearGradientUnderlineToken = token.includes("link-underline-color") && targetProp === "backgroundImage";

if (isFakeBorderColorToken || isLinearGradientUnderlineToken) {
expect(getStyleString(token, targetProp, styles[targetProp])).toMatch(expectedValue);
Copy link
Member

Choose a reason for hiding this comment

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

We should keep this for testing maintenance. Removing getStyleString would remove helpful details from the test failure messages (see #9481).

@alisonailea alisonailea requested a review from benelan as a code owner November 27, 2024 19:18
Copy link
Contributor

github-actions bot commented Dec 7, 2024

This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions.

@github-actions github-actions bot added the Stale Issues or pull requests that have not had recent activity. label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Issues or pull requests that have not had recent activity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants