Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ba66f17
feat: first test for new wizard
Who-is-PS Jan 22, 2026
37f59b7
feat: Add example with popover for wizard
Who-is-PS Jan 26, 2026
de32932
feat: Add example for expandable section
Who-is-PS Jan 29, 2026
087e51d
feat: Wizard with expandable section
Who-is-PS Jan 30, 2026
bce987c
chore: Update snapshot tests
Who-is-PS Jan 30, 2026
916815d
feat: Update tests and refactor files for wizard
Who-is-PS Feb 2, 2026
db297ce
fix: Add can skip test
Who-is-PS Feb 2, 2026
d61db64
fix: Remove unnecessary files
Who-is-PS Feb 2, 2026
f7e66dd
clean up
Who-is-PS Feb 2, 2026
6845787
clean up
Who-is-PS Feb 2, 2026
f58bca1
clean up
Who-is-PS Feb 2, 2026
a4cdafb
clean up
Who-is-PS Feb 2, 2026
7408dc0
clean up
Who-is-PS Feb 2, 2026
16247d4
update snapshot tests
Who-is-PS Feb 2, 2026
2f8da78
add new test for wizard
Who-is-PS Feb 3, 2026
0db5c96
Merge branch 'main' into dev-v3-philosr-wizard-a11y
Who-is-PS Feb 3, 2026
643c92b
update tests for wizard compoennt
Who-is-PS Feb 3, 2026
f29b177
include new tests for codecov
Who-is-PS Feb 3, 2026
fab1ac2
include new tests for codecov
Who-is-PS Feb 3, 2026
77cf02a
update tests
Who-is-PS Feb 3, 2026
5f49f11
update functionality and style
Who-is-PS Feb 3, 2026
bc55c28
update states for wizard
Who-is-PS Feb 3, 2026
6869560
refactor step navigation to share code between desktop and expandable…
Who-is-PS Feb 4, 2026
627d90e
update test for desktop for wizard
Who-is-PS Feb 4, 2026
e283dca
update tests
Who-is-PS Feb 4, 2026
35142de
remove tests
Who-is-PS Feb 4, 2026
3f12302
refacting wizard header
Who-is-PS Feb 5, 2026
7d0a982
aria-describedby fix
Who-is-PS Feb 6, 2026
e90a450
update styling
Who-is-PS Feb 6, 2026
36a88c6
bug fixes
Who-is-PS Feb 9, 2026
0963762
add new tests for wizard
Who-is-PS Feb 10, 2026
64959ab
add test for codecov
Who-is-PS Feb 10, 2026
c4d06a7
add new test
Who-is-PS Feb 10, 2026
8c41dd5
added tests
Who-is-PS Feb 10, 2026
31d25a7
add new test
Who-is-PS Feb 11, 2026
f514250
update tests
Who-is-PS Feb 12, 2026
2a10cc5
using breakpoints
Who-is-PS Feb 13, 2026
6379285
updated row gap
Who-is-PS Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/wizard/__integ__/wizard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';

import createWrapper from '../../../lib/components/test-utils/selectors';

import styles from '../../../lib/components/wizard/styles.selectors.js';

const wizardWrapper = createWrapper().findWizard();

class WizardPageObject extends BasePageObject {
Expand Down Expand Up @@ -94,6 +96,27 @@ describe('Wizard keyboard navigation', () => {
});
});

describe('Wizard narrow viewport navigation', () => {
test(
'shows expandable step navigation at narrow viewport',
useBrowser(async browser => {
const page = new WizardPageObject(browser);
// Set narrow viewport first using page object with object syntax
await page.setWindowSize({ width: 320, height: 600 });
await browser.url('/#/light/wizard/simple?visualRefresh=true');
await page.waitForVisible(wizardWrapper.findPrimaryButton().toSelector());

// Collapsed steps container should be displayed at narrow viewport
const collapsedSteps = wizardWrapper.find(`.${styles['collapsed-steps']}`).findExpandableSection().toSelector();
await expect(page.isDisplayed(collapsedSteps)).resolves.toBe(true);

// Sidebar navigation should be hidden at narrow viewport
const navigation = wizardWrapper.findByClassName(styles.navigation).toSelector();
await expect(page.isDisplayed(navigation)).resolves.toBe(false);
})
);
});

describe('Wizard scroll to top upon navigation', () => {
test(
'in window',
Expand Down
Loading
Loading