fix: SW-2054 correct DataAppShell Storybook E2E test assertions for icon-only rail#155
Merged
owilliams-tetrascience merged 5 commits intoJul 2, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…d counts Three Storybook play-test fixes for PR #138 (feat/dataappshell-rail-style): 1. WorkflowPanelInteractions: remove "1K" count assertion — WorkflowPanel no longer renders inputCount/outputCount pill text. 2. MultipleNavGroups: replace getByText("Filters") / getAllByText("Filters") with getByRole("button", { name: "Filters" }) — nav buttons in the icon rail are now icon-only (label moved to aria-label + tooltip). 3. CompactProperty: update railStyles.width assertion from "60px" to "48px" — rail width changed from w-[60px] to w-12 (48 px).
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job for Storybook E2E Tests
fix: SW-2054 correct DataAppShell Storybook E2E test assertions for icon-only rail
Jun 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes Storybook play-test failures introduced by the DataAppShell nav rail/workflow demo UI updates (icon-only rail, removed count display, narrower rail), and carries the corresponding component/story adjustments into this branch so the assertions match the rendered output.
Changes:
- Updated
DataAppShellto support an icon-only desktop nav rail (ARIA labels + tooltip) with a narrower width and adjusted sizing/typography. - Updated
DataAppShellstories/play functions to assert against accessible names (getByRole(..., { name })) and the new rail width, and removed stale count assertions. - Added
navRailHiddento allow hiding the desktop nav rail (used by the collapsed workflow story).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/components/composed/DataAppShell/DataAppShell.tsx |
Implements the icon-only, narrower desktop nav rail behavior and adds navRailHidden for conditional rail rendering. |
src/components/composed/DataAppShell/DataAppShell.stories.tsx |
Updates demo content and play-test assertions to match the updated rail/workflow UI and accessibility approach. |
Comments suppressed due to low confidence (1)
src/components/composed/DataAppShell/DataAppShell.stories.tsx:359
- Similarly, the Next button should use the derived
stepsarray (the source of truth for active state) rather than indexing intohtsWorkflowSteps. This reduces the chance of navigation bugs if the rendered steps change independently of the original constant.
<Button
size="sm"
disabled={isLastStep}
onClick={() => !isLastStep && setActiveStepId(htsWorkflowSteps[activeStepIndex + 1].id)}
className="gap-1"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
owilliams-tetrascience
approved these changes
Jul 2, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
auto-merge was automatically disabled
July 2, 2026 16:47
Head branch was pushed to by a user without write access
owilliams-tetrascience
approved these changes
Jul 2, 2026
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
owilliams-tetrascience
approved these changes
Jul 2, 2026
boramyi-ts
approved these changes
Jul 2, 2026
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.
Three play-test assertions in
DataAppShell.stories.tsxwere not updated to match the component changes landed in PR #138 (icon-only nav rail, removed count display, narrowed rail width), causing the Storybook E2E job to fail.Summary
Root cause: PR #138 changed the DataAppShell component but left three stale test assertions:
getByText("1K")— count pills removed fromWorkflowPanelgetByText("Filters")within the icon rail — labels moved toaria-labelgetByRole("button", { name: "Filters" })railStyles.width==="60px"— rail narrowed fromw-[60px]tow-12"48px"Also carries the component changes from PR #138 (
DataAppShell.tsx: icon-only compact buttons witharia-label,w-12rail, 30px icon box, removed label span).Type of Change
Checklist
yarn lintpassesyarn buildpassesyarn test:allpassesTesting
SW-T4672 (Workflow Panel Interactions), SW-T4673 (Multiple Nav Groups), SW-T4677 (Compact Property)
Verification
Screenshots
N/A — test-only corrections; no visual change beyond what PR #138 already introduced.