Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding testing around writing previews #1507

Merged
merged 14 commits into from
Oct 19, 2022
Merged

Adding testing around writing previews #1507

merged 14 commits into from
Oct 19, 2022

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Oct 18, 2022

Description

This PR adds tests to codify some of the adr requirements written up here https://github.com/github/primer/pull/1387.

The document says that every preview should have a

  • Playground story "Playground stories make use of controls and are intended to be fully configurable, exposing all available component props."
  • Default story "Sets all the default values for all component props. Giving an example of how it looks without configuration"

This PR does include some changes to the static/ arguments json file that add new attributes. For this part I'm including a changeset.

Integration

Does this change require any updates to code in production?

No

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Oct 18, 2022

🦋 Changeset detected

Latest commit: d987a99

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jonrohan jonrohan temporarily deployed to review-pr-1507 October 18, 2022 21:16 Inactive
@jonrohan jonrohan temporarily deployed to github-pages October 18, 2022 21:21 Inactive
@jonrohan jonrohan changed the title Adding testing around previews Adding testing around writing previews Oct 18, 2022
@jonrohan jonrohan temporarily deployed to review-pr-1507 October 19, 2022 21:22 Inactive
@jonrohan jonrohan temporarily deployed to github-pages October 19, 2022 21:28 Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1507 October 19, 2022 21:54 Inactive
@jonrohan jonrohan requested a review from langermank October 19, 2022 21:54
@jonrohan jonrohan marked this pull request as ready for review October 19, 2022 21:54
@jonrohan jonrohan requested review from a team and BlakeWilliams October 19, 2022 21:54
@jonrohan jonrohan temporarily deployed to github-pages October 19, 2022 22:00 Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1507 October 19, 2022 22:34 Inactive
@jonrohan jonrohan enabled auto-merge (squash) October 19, 2022 22:35
@jonrohan jonrohan temporarily deployed to github-pages October 19, 2022 22:38 Inactive
lib/tasks/docs.rake Outdated Show resolved Hide resolved
Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one silly comment 😆 this is great!

Co-authored-by: Katie Langerman <[email protected]>
@primer-css primer-css temporarily deployed to github-pages October 19, 2022 22:56 Inactive
@jonrohan jonrohan merged commit 16ecd00 into main Oct 19, 2022
@jonrohan jonrohan deleted the preview_test_cases branch October 19, 2022 22:59
@primer-css primer-css mentioned this pull request Oct 19, 2022
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.

4 participants