Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(a11y): route the ProgressBar disabled contract story to its existing baseline (#7971)

Cindy Zhang720bb10e5ec6
diff --git a/.github/scripts/lib/a11y-story-identity.js b/.github/scripts/lib/a11y-story-identity.js
index 1420b30122..1b40c06abe 100644
--- a/.github/scripts/lib/a11y-story-identity.js
+++ b/.github/scripts/lib/a11y-story-identity.js
@@ -59,6 +59,10 @@ const LEGACY_BASELINE_STORY_MIGRATIONS = Object.freeze({
owner: 'core/RadioListItem',
legacyStoryKeys: Object.freeze(['RadioList::Disabled With Message']),
}),
+ 'a11y-progressbar--progress-bar-disabled': Object.freeze({
+ owner: 'core/ProgressBar',
+ legacyStoryKeys: Object.freeze(['ProgressBar::Disabled']),
+ }),
});
function ownerForA11yStory(storyId) {
diff --git a/.github/scripts/lib/a11y-story-identity.test.mjs b/.github/scripts/lib/a11y-story-identity.test.mjs
index 85fc32f0c5..7d0725959b 100644
--- a/.github/scripts/lib/a11y-story-identity.test.mjs
+++ b/.github/scripts/lib/a11y-story-identity.test.mjs
@@ -38,6 +38,11 @@ const EXPECTED_MIGRATIONS = [
'core/RadioList',
'a11y-radio-group-pattern--radio-list-group-disabled-with-message',
],
+ [
+ 'ProgressBar::Disabled',
+ 'core/ProgressBar',
+ 'a11y-progressbar--progress-bar-disabled',
+ ],
[
'RadioList::Disabled',
'core/RadioListItem',
@@ -110,7 +115,7 @@ describe('a11y story identity migration', () => {
}
});
- it('contains only the six proven legacy migrations', () => {
+ it('contains only the seven proven legacy migrations', () => {
expect(Object.keys(LEGACY_BASELINE_STORY_MIGRATIONS).sort()).toEqual(
EXPECTED_MIGRATIONS.map(([, , storyId]) => storyId).sort(),
);