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 visual coverage and WCAG tests #405

Merged
merged 11 commits into from
Nov 29, 2023
Merged

Fix visual coverage and WCAG tests #405

merged 11 commits into from
Nov 29, 2023

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Nov 28, 2023

Make updates to the Storybook setup and stories to fix the visual coverage and WCAG checks that have been failing since the Storybook version was upgraded. These changes include

  • updating all Storybook files to use TS instead of JS
  • removal of the hardcoded CJS entrypoints for @reach package imports from the Storybook preview
  • removal/updating usage of deprecated Storybook types
  • exclusion of more components provided by mapbox-gl, over which we have no control in terms of WCAG violations
  • removal of Tailwind since the CSS bundle from dist is directly imported now instead of a Storybook-specific index.css

J=BACK-2831
TEST=auto

See that the WCAG tests, Code Coverage, and Run Tests checks are now all passing.

Note: the Semgrep check is failing because of the license of the store2 package, which was not updated in this PR.

@coveralls
Copy link

coveralls commented Nov 28, 2023

Coverage Status

coverage: 85.101% (-1.7%) from 86.787%
when pulling fdffe7a on dev/fix-storybook
into 2d875e2 on develop.

Copy link
Contributor

github-actions bot commented Nov 28, 2023

Current unit coverage is 92.1765295887663%
Current visual coverage is 77.75665399239544%
Current combined coverage is 92.68170426065163%

@nmanu1 nmanu1 marked this pull request as ready for review November 28, 2023 18:40
@nmanu1 nmanu1 requested a review from a team as a code owner November 28, 2023 18:40
Copy link
Contributor

@EmilyZhang777 EmilyZhang777 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing it!

@nmanu1 nmanu1 merged commit 74c591f into develop Nov 29, 2023
15 of 18 checks passed
@nmanu1 nmanu1 deleted the dev/fix-storybook branch November 29, 2023 15:27
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