Skip to content

fix(data-app-shell): fix 3 stale Storybook E2E test assertions#151

Draft
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-storybook-e2e-tests
Draft

fix(data-app-shell): fix 3 stale Storybook E2E test assertions#151
Copilot wants to merge 6 commits into
mainfrom
copilot/fix-storybook-e2e-tests

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Commit a84f94b refactored DataAppShell (narrowed rail, icon-only nav, dropped count pills) but left 3 play-function assertions untouched, causing the Storybook E2E CI job to fail.

Summary

Three stale test assertions in DataAppShell.stories.tsx are fixed to match the updated component behaviour:

  • Workflow Panel Interactions — removed getByText("1K"): formatCount and the count-pill rendering were deleted from WorkflowPanel, so this text no longer exists in the DOM.
  • Multiple Nav Groups — replaced getAllByText("Filters") / getByText("Filters") with getByRole("button", { name: "Filters" }): nav items are now icon-only; the label is an aria-label, not visible text.
  • Compact Property — changed expect(railStyles.width).toBe("60px")"48px": rail class changed from w-[60px] to w-12.

Type of Change

  • Feature (new functionality)
  • Bug fix
  • Refactor
  • Documentation
  • Chore (build, CI, dependencies)
  • Breaking change

Checklist

  • yarn lint passes
  • yarn build passes
  • yarn test:all passes
  • Storybook stories added/updated
  • Code coverage remains the same or increased

Testing

SW-T4673, SW-T4677 (Storybook play tests for MultipleNavGroups and CompactProperty)

Verification

  • Deploys to preview environment for manual verification
  • All CI/E2E checks pass

Screenshots

N/A — test-only fix.

GracePan-Tetra and others added 4 commits June 16, 2026 22:53
Replace the demo breadcrumb trail with generic placeholder labels
(All Projects / Project Name / worksession name).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a `navRailHidden` prop to DataAppShell. When true, the desktop
icon nav rail is not rendered, so collapsing the sidebar panel can
hide both the rail and the panel, giving the content full width.

Wired in the Default story to the panel's collapsed state, with a
play-test asserting the rail is hidden when collapsed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Side nav rail (component):
- Narrow rail 60px -> 48px; icon-only nav buttons (label moved to
  aria-label + tooltip); button box 36px -> 30px; glyphs 20px -> 16px.
- Remove divider under the app logo; nudge logo up 4px.
- Unify breadcrumb text size to text-sm.

Workflow step panel (story demo):
- Rename demo steps to generic "Step N Name"; drop per-step counts.
- Step card height -> 40px; step name uses the text-title-sm token;
  inactive steps lightened (font-light).
- Remove the INPUT/OUTPUT data-count pills and dead helpers.
- Add an outline Back button next to Next from step 2 onward.

Play-tests updated to query nav buttons by accessible name and the
new labels/sizes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ts-lib-ui-kit-storybook Ready Ready Preview, Comment Jun 23, 2026 10:38pm

Request Review

Copilot AI added 2 commits June 23, 2026 22:31
Commit a84f94b narrowed the sidebar rail (60px→48px), made nav buttons
icon-only (labels moved to aria-label + tooltip), and removed count
pills from WorkflowPanel — but left 3 play-test assertions stale:

- WorkflowPanelInteractions: remove getByText("1K") — counts no longer rendered
- MultipleNavGroups: use getByRole("button", {name:"Filters"}) instead of
  getByText("Filters") — nav items are icon-only with aria-label
- CompactProperty: change expected rail width "60px" → "48px"
Copilot AI changed the title [WIP] Fix failing GitHub Actions job for Storybook E2E Tests fix(data-app-shell): fix 3 stale Storybook E2E test assertions Jun 23, 2026
Copilot AI requested a review from 54321jenn-ts June 23, 2026 22:35
Copilot AI temporarily deployed to artifactory-prod June 23, 2026 22:43 Inactive
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 94.74% (🎯 83%)
🟰 ±0%
20619 / 21762
🟢 Statements 94.74% (🎯 83%)
🟰 ±0%
20619 / 21762
🟢 Functions 93.58% (🎯 74%)
🟰 ±0%
919 / 982
🟢 Branches 88.73% (🎯 81%)
⬇️ -0.01%
3766 / 4244
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/composed/DataAppShell/DataAppShell.tsx 97.88%
⬇️ -0.04%
87.71%
⬇️ -0.62%
85.71%
🟰 ±0%
97.88%
⬇️ -0.04%
213-214, 298-303
Generated in workflow #823 for commit c5f20a3 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants