This repository is currently being migrated. It's locked while the migration is in progress.
4858 interaction testing#1945
Draft
RyanMunsch wants to merge 51 commits into
Draft
Conversation
… va-search-input styles to check for presence of big and small attributes
This reverts commit 35e9858.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chromatic
https://4858-interaction-testing--65a6e2ed2314f7b8f98609d8.chromatic.com
Description
DO NOT MERGE - Testing/proof-of-concept for implementation of interaction testing for Storybook/Chromatic
This pull request serves as prototype and proof-of-concept for Storybook interaction testing for VA web components, with a focus on
va-accordion,va-additional-info, andva-omb-info(components that were highlight as needing a snapshot after interaction. It also standardizes the use ofdata-testidattributes across these components to facilitate more reliable testing. Additionally, several configuration and dependency updates have been made to support these enhancements.Interaction Testing Enhancements:
va-accordion,va-additional-info, andva-omb-info, covering accessibility, internationalization, and user interactions. These stories utilize theshadow-dom-testing-libraryto enable querying inside web component shadow roots. [1] [2] [3]Testability Improvements to Web Components:
data-testidattributes to theHostelements ofva-accordion,va-accordion-item,va-additional-info, andva-omb-infoto improve selector reliability in both E2E and Storybook interaction tests. [1] [2] [3] [4]data-testidattributes, ensuring consistency between unit, E2E, and interaction tests. [1] [2] [3] [4] [5] [6] [7]Storybook Configuration and Dependency Updates:
shadow-dom-testing-libraryas a dev dependency to support shadow DOM querying in interaction tests.@stencil/react-output-targetas a dependency in the web components package, likely to support React bindings for Stencil components.Related tickets and links
Closes department-of-veterans-affairs/vets-design-system-documentation#4858
Screenshots
/storybookpackage in the repo is using Webpack instead of Vite - the Storybook docs strongly suggest using Vite instead.Failing interaction test
Passing interaction test
Testing and review
Approvals
See the QA Checklists section below for suggested approvals. Use your best judgment if additional reviews are needed. When in doubt, request a review.
Approval groups
Add approval groups to the PR as needed:
QA checklists
Use the QA checklists below as guides, not rules. Not all checklists will apply to every PR but there could be some overlap.
In all scenarios, changes should be fully tested by the author and verified by the reviewer(s); functionality, responsiveness, etc.
✨ New Component Added
minorlabel🌱 New Component Variation Added
minorlabel🐞 Component Fix
patchlabel♿️ Component Fix - Accessibility
patchlabel🚨 Component Fix - Breaking API Change
majorlabel🔧 Component Update - Non-Breaking API Change
minorlabel📖 Storybook Update
ignore-for-releaselabel🎨 CSS-Library Update
css-librarylabel