René's URL Explorer Experiment


Title: Test | UX | Storybook snapshot testing (build-over-build) for regression prevention · Issue #444 · coder/coder · GitHub

Open Graph Title: Test | UX | Storybook snapshot testing (build-over-build) for regression prevention · Issue #444 · coder/coder

X Title: Test | UX | Storybook snapshot testing (build-over-build) for regression prevention · Issue #444 · coder/coder

Description: Overview In our CI, we run yarn storybook:build to try and vet some issues where the storybook stories get out of sync with the codebase: coder/.github/workflows/coder.yaml Line 276 in 97399f8 - name: Build Storybook However, it seems li...

Open Graph Description: Overview In our CI, we run yarn storybook:build to try and vet some issues where the storybook stories get out of sync with the codebase: coder/.github/workflows/coder.yaml Line 276 in 97399f8 - na...

X Description: Overview In our CI, we run yarn storybook:build to try and vet some issues where the storybook stories get out of sync with the codebase: coder/.github/workflows/coder.yaml Line 276 in 97399f8 - na...

Opengraph URL: https://github.com/coder/coder/issues/444

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test | UX | Storybook snapshot testing (build-over-build) for regression prevention","articleBody":"## Overview\r\n\r\nIn our CI, we run `yarn storybook:build` to try and vet some issues where the storybook stories get out of sync with the codebase:\r\nhttps://github.com/coder/coder/blob/97399f888de03af1339a8523216820f9933386fc/.github/workflows/coder.yaml#L276\r\n\r\nHowever, it seems like this isn't sufficient - as several errors cropped up in storybook: #443 \r\n\r\nIn v1, we used the [Chromatic](https://chromatic.com) to validate our stories stayed consistent build-over-build - having a tool like that integrated into our CI again would catch these sorts of failures in the future.\r\n\r\n## Current behavior\r\n\r\nWe do not have visual snapshot testing of our Storybook\r\n\r\n## V1 behavior\r\n\r\nIn V1 we had a free version of Chromatic and used it successfully. However, when the free tier usage runs up, it was holding our CI hostage, so we temporarily suppressed it. We need to get an enterprise plan approval and update our pipeline for it.\r\n\r\nFurthermore, we noticed that some components (example a component that purposefully threw an error) would have false positives. They were addressed by suppressing Chromatic like this:\r\n\r\n```ts\r\nexport const ShowingError = Template.bind({})\r\nShowingError.parameters = {\r\n  // The FallbackDialog is noisy for chromatic, because it renders an actual error\r\n  // along with the stacktrace - and the stacktrace includes the full URL of\r\n  // scripts in the stack. This is problematic, because every deployment uses\r\n  // a different URL, causing the validation to fail.\r\n  chromatic: { disableSnapshot: true },\r\n}\r\n```\r\n\r\n## Desired behavior\r\n\r\nWe have visual snapshot testing of our Storybook\r\n\r\n## Implementation details\r\n\r\nWe prefer using [Chromatic](https://www.chromatic.com/) because it's recommended by [Storybook](https://storybook.js.org/docs/react/writing-tests/visual-testing)","author":{"url":"https://github.com/bryphe-coder","@type":"Person","name":"bryphe-coder"},"datePublished":"2022-03-15T18:21:09Z","url":"https://github.com/coder/coder/issues/444"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ebd9540c-44c5-dd57-ab27-766168ffe5ac
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF9A:14ECB:28BBDDE:33C33A3:6B019FEE
html-safe-noncee48d57d61c6e35f92eda48227705f49ebc4373333e8836e05b6cb191c55a1f17
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjlBOjE0RUNCOjI4QkJEREU6MzNDMzNBMzo2QjAxOUZFRSIsInZpc2l0b3JfaWQiOiI1MzU2NDMwMDk4MDU4ODEzNDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0277ae89918cddad842c5b92b1cff99ae0a39e9dae2ffdd597be2ccaaecbc24f
hovercard-subject-tagissue:1170027490
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/444/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dd59909e406860eadd1de4f2a89d6fc343ca8589ed656898ec6a312a07845047/coder/coder/issues/444
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd59909e406860eadd1de4f2a89d6fc343ca8589ed656898ec6a312a07845047/coder/coder/issues/444
og:image:altOverview In our CI, we run yarn storybook:build to try and vet some issues where the storybook stories get out of sync with the codebase: coder/.github/workflows/coder.yaml Line 276 in 97399f8 - na...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebryphe-coder
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/444#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F444
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F444
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/444
Reloadhttps://github.com/coder/coder/issues/444
Reloadhttps://github.com/coder/coder/issues/444
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/444
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/444
#896https://github.com/coder/coder/pull/896
Test | UX | Storybook snapshot testing (build-over-build) for regression preventionhttps://github.com/coder/coder/issues/444#top
#896https://github.com/coder/coder/pull/896
https://github.com/greyscaled
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
V2 Betahttps://github.com/coder/coder/milestone/4
https://github.com/bryphe-coder
bryphe-coderhttps://github.com/bryphe-coder
on Mar 15, 2022https://github.com/coder/coder/issues/444#issue-1170027490
coder/.github/workflows/coder.yamlhttps://github.com/coder/coder/blob/97399f888de03af1339a8523216820f9933386fc/.github/workflows/coder.yaml#L276
97399f8https://github.com/coder/coder/commit/97399f888de03af1339a8523216820f9933386fc
#443https://github.com/coder/coder/pull/443
Chromatichttps://chromatic.com
Chromatichttps://www.chromatic.com/
Storybookhttps://storybook.js.org/docs/react/writing-tests/visual-testing
bryphe-coderhttps://github.com/bryphe-coder
good first issuehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
cihttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22ci%22
on Mar 15, 2022https://github.com/coder/coder/issues/444#event-6245458039
greyscaledhttps://github.com/greyscaled
on Mar 15, 2022https://github.com/coder/coder/issues/444#event-6245459729
https://github.com/bryphe-coder
bryphe-coderhttps://github.com/bryphe-coder
on Mar 15, 2022https://github.com/coder/coder/issues/444#issuecomment-1068314815
https://github.com/greyscaled
greyscaledhttps://github.com/greyscaled
on Mar 15, 2022https://github.com/coder/coder/issues/444#issuecomment-1068315621
https://github.com/bryphe-coder
bryphe-coderhttps://github.com/bryphe-coder
on Mar 15, 2022https://github.com/coder/coder/issues/444#issuecomment-1068316845
#443https://github.com/coder/coder/pull/443
greyscaledhttps://github.com/greyscaled
needs decisionNeeds a higher-level decision to be unblocked.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20decision%22
typescript/jshttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22typescript%2Fjs%22
on Mar 15, 2022https://github.com/coder/coder/issues/444#event-6245778873
https://github.com/greyscaled
greyscaledhttps://github.com/greyscaled
on Mar 15, 2022https://github.com/coder/coder/issues/444#issuecomment-1068367936
greyscaledhttps://github.com/greyscaled
on Mar 15, 2022https://github.com/coder/coder/issues/444#event-6245785955
greyscaledhttps://github.com/greyscaled
regression-preventionhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22regression-prevention%22
on Mar 15, 2022https://github.com/coder/coder/issues/444#event-6245790473
presleyphttps://github.com/presleyp
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
on Mar 21, 2022https://github.com/coder/coder/issues/444#event-6276739453
missknisshttps://github.com/misskniss
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
epichttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22epic%22
on Mar 29, 2022https://github.com/coder/coder/issues/444#event-6323326305
greyscaledhttps://github.com/greyscaled
good first issue 🥇https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%20%3A1st_place_medal%3A%22
needs decisionNeeds a higher-level decision to be unblocked.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20decision%22
on Apr 6, 2022https://github.com/coder/coder/issues/444#event-6382940032
greyscaledhttps://github.com/greyscaled
V2 Betahttps://github.com/coder/coder/milestone/4
on Apr 6, 2022https://github.com/coder/coder/issues/444#event-6382941466
greyscaledhttps://github.com/greyscaled
on Apr 6, 2022https://github.com/coder/coder/issues/444#event-6383381551
chore(site): configure chromatic snapshot testshttps://github.com/coder/coder/commit/0b0375772ac23d1fa8796cb357fc9465c4f24b85
https://docs.github.com/articles/closing-issues-via-commit-messages
0b03757https://github.com/coder/coder/commit/0b0375772ac23d1fa8796cb357fc9465c4f24b85
greyscaledhttps://github.com/greyscaled
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#896https://github.com/coder/coder/pull/896
on Apr 6, 2022https://github.com/coder/coder/issues/444#event-6383728488
greyscaledhttps://github.com/greyscaled
on Apr 6, 2022https://github.com/coder/coder/issues/444#event-6383728641
chore: configure chromatic snapshot tests (#896)https://github.com/coder/coder/commit/5782879f2fea4a16e99ed2c925687f50fc83bce2
#896https://github.com/coder/coder/pull/896
https://docs.github.com/articles/closing-issues-via-commit-messages
5782879https://github.com/coder/coder/commit/5782879f2fea4a16e99ed2c925687f50fc83bce2
chore: speed up chromatic cihttps://github.com/coder/coder/commit/40322052dbe3ab62b7b37b9a270875377074ea5b
https://docs.github.com/articles/closing-issues-via-commit-messages
4032205https://github.com/coder/coder/commit/40322052dbe3ab62b7b37b9a270875377074ea5b
chore: speed up chromatic ci (#904)https://github.com/coder/coder/commit/579fd4bc893b09bfc143e529fca7571f4ce83a6c
#904https://github.com/coder/coder/pull/904
https://docs.github.com/articles/closing-issues-via-commit-messages
579fd4bhttps://github.com/coder/coder/commit/579fd4bc893b09bfc143e529fca7571f4ce83a6c
missknisshttps://github.com/misskniss
V2 BETAhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22V2%20BETA%22
on May 3, 2022https://github.com/coder/coder/issues/444#event-6537927780
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/444
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/444
greyscaledhttps://github.com/greyscaled
siteArea: frontend dashboardhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22site%22
V2 Betahttps://github.com/coder/coder/milestone/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.