-
Notifications
You must be signed in to change notification settings - Fork 0
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
test: add storybook stories for public pages #365
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1af6ade
to
f63ed12
Compare
@@ -48,90 +48,94 @@ const Prompts = ({ apps }: PromptsPageData) => { | |||
}, [pathname, itemRefs]); | |||
|
|||
return ( | |||
<Layout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change here is removing <Layout>
Playwright test resultsDetails Open report ↗︎ Skipped testsNo persona › tests/auth.test.ts › authenticate through Clerk UI |
@@ -1,7 +1,7 @@ | |||
export interface PolicyDocument { | |||
title: string; | |||
slug: string; | |||
fake_updatedAt: string; | |||
fake_updatedAt: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixture data was failing the type
7a6e4f1
to
95ba18a
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Checked in Chromatic and approved and, as this is a new process, also checked that all of the affected pages still render in the preview branch. 👍
🎉 This PR is included in version 1.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Adds storybook stories for each of our public pages
In the long run we might want more targeted stories for the atoms and molecules which make up pages, but for now this is a good way to get test coverage
For each page I've created an inner
MyPageContent
component without the<Layout>
wrapper. We want to test the layout independently. This has caused large diffs due to the indentation change, but there actually isn't that much being changed