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 2 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).

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.

2 participants