Skip to content

Adding testing around writing previews#1507

Merged
jonrohan merged 14 commits intomainfrom
preview_test_cases
Oct 19, 2022
Merged

Adding testing around writing previews#1507
jonrohan merged 14 commits intomainfrom
preview_test_cases

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
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 <langermank@github.com>
@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