Repository navigation
test: add component tests for showcase page and cards - #117
Merged
Merged
Conversation
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.
Part of #86
Closes #116
What changed: the plugin showcase page and cards now have component tests. ShowcasePage.test.tsx covers the initial render with item counts and category chips, category chip filtering, search filtering and the empty state. ShowcaseCard.test.tsx covers name, description, category label, the recommended badge, tag truncation to four, and the deep link target and label. No production code changed and nothing user-facing changed. This is a test-only slice.
How it was verified:
Proof:
Capture method (a) screenshot succeeded this run. Full page PNG of /showcase signed in as guest, saved at .tmp/proof/showcase-page.png on this branch: https://github.com/echohello-dev/backstage/blob/agent/issue-116-showcase-component-tests/.tmp/proof/showcase-page.png
Capture method (b) test output is pasted in the verification list above. The live snapshot from the same session listed Plugin Showcase, 14 items available and the first cards AI Hub Service and Answer Engine Worker with Recommended badges, matching the screenshot.
Known gaps and follow-ups: