Repository navigation
test(design-system): add jsdom consumer test scenarios [AR-117427] - #927
Open
mmurawski-dn wants to merge 7 commits into
Open
mmurawski-dn wants to merge 7 commits into
mmurawski-dn wants to merge 7 commits into
Conversation
👷 Deploy request for drivenets-design-system pending review.Visit the deploys page to approve it
|
… more components [AR-117427]
aroba-dn
reviewed
Nov 24, 2026
aroba-dn
reviewed
Nov 24, 2026
aroba-dn
reviewed
Nov 24, 2026
aroba-dn
reviewed
Nov 24, 2026
…t warnings [AR-117427]
This branch has not been deployed
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.
Consumers test their apps with Vitest or Jest on JSDOM, but the design system only ran in real browsers. A new
jsdomtest project now mounts the components the way consumers do, and a new Guidelines/Testing docs page documents the test setup they need.Changes
matchMedia,ResizeObserver,scrollToandscrollIntoView.jsdom-26project that redirects Vitest'sjsdomimport with a Node resolve hook). Both run withpnpm test, so the regular CITestjob catches JSDOM breakage before release.CSS.escape, highlighted option names), CSS imports in Jest, and known limitations. Being aGuidelines/*page, it is in the docs manifest, so agents using thedrivenets-dsMCP read it before writing code. The package README links to it.Notes for reviewers
DsCommentCardnests its action buttons inside a<button>, andDsCodeInputwithdefaultExpandedlogs a zag "node isnull" warning. Both need their own tickets.DsTimePickerdoesn't callonChangewhen uncontrolled, in browsers too, so its scenario checks the input value instead.