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(table): fix style regression #8991

Merged
merged 5 commits into from
Mar 29, 2024

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Mar 23, 2024

Related Issue: #7180

Summary

✨🏓🔨✨

* move theming-related tests to stories
* drop unnecessary tests
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Mar 23, 2024
@jcfranco jcfranco added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Mar 25, 2024
@jcfranco jcfranco marked this pull request as ready for review March 25, 2024 16:21
@jcfranco jcfranco requested a review from a team as a code owner March 25, 2024 16:21
Copy link
Contributor

@alisonailea alisonailea left a comment

Choose a reason for hiding this comment

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

I'd like to revert the removal of theme tests from e2e. The added VRT tests do not fully cover the token values and it is very easy for a human to miss subtle color changes (especially random colors like we are using) resulting in several accepted faulty VRT tests due to human error. Unit tests are better in this case. Since they represent a data application change not an alteration to our underlaying style assignments.

expect(scrimStyles.trim()).toEqual("rgba(0, 0, 0, 0.85)");
});

it("when modal css override set, scrim should adhere to requested color", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no replacement for these tests ATM

Copy link
Member Author

@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.

Per our conversation, will roll back theme-specific test changes, which will be addressed by #8993.

@jcfranco jcfranco changed the title test: fix tests fix(table): fix style regression Mar 26, 2024
@jcfranco jcfranco added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Mar 26, 2024
Copy link
Contributor

@macandcheese macandcheese left a comment

Choose a reason for hiding this comment

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

🏅

@jcfranco jcfranco merged commit 57b559a into epic/7180-component-tokens Mar 29, 2024
11 checks passed
@jcfranco jcfranco deleted the jcfranco/7180-fix-tests branch March 29, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants