Skip to content

test: add storybook stories and storyshot test runner for kueue resources - #1188

Open
pbcodesC wants to merge 3 commits into
headlamp-k8s:mainfrom
pbcodesC:kueue-storybook-stories
Open

test: add storybook stories and storyshot test runner for kueue resources#1188
pbcodesC wants to merge 3 commits into
headlamp-k8s:mainfrom
pbcodesC:kueue-storybook-stories

Conversation

@pbcodesC

Copy link
Copy Markdown

Description
Added Storybook stories and snapshot test coverage (storybook.test.tsx) for Kueue plugin views, covering representative states with realistic API structures.

Changes Included

  • Storyshot Test Runner: Created src/storybook.test.tsx using Headlamp's storyshots config.
  • ClusterQueue Coverage: Created ClusterQueueList.stories.tsx and ClusterQueueDetail.stories.tsx.
  • LocalQueue Coverage: Created LocalQueueList.stories.tsx and LocalQueueListView.tsx covering active and inactive states.
  • Workload Coverage: Created WorkloadList.stories.tsx and WorkloadListView.tsx covering Admitted and Pending admission condition states.
  • Realistic Fixtures: Mock objects strictly mirror official Kueue API YAML definitions (apiVersion, kind, spec.queueingStrategy, status.conditions).

Testing

  • Verified test suite passes locally using npx vitest run (Storyshots captured and validated).

…rces

Signed-off-by: pbcodesC <badgotripayal777@gmail.com>
git push --force-with-lease
Merge branch 'kueue-storybook-stories' of https://github.com/pbcodesC/plugins into kueue-storybook-stories
@pbcodesC
pbcodesC force-pushed the kueue-storybook-stories branch from 71e50d1 to bc9a93e Compare August 15, 2026 09:04
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.

1 participant