Skip to content

Commit

Permalink
add remark
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Feb 6, 2025
1 parent 56cf0db commit 26d026f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/UserFlows.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export const ToCategoryListPage = meta.story({

export const ToCategoryDetailPage = meta.story({
play: async (context) => {
await ToCategoryListPage.play(context)
// in an upcoming canary the .input would not be needed for play functions
await ToCategoryListPage.input.play?.(context)
const { canvasElement, step, userEvent } = context

const canvas = within(canvasElement)
Expand All @@ -68,7 +69,8 @@ export const ToCategoryDetailPage = meta.story({

export const ToRestaurantDetailPage = meta.story({
play: async (context) => {
await ToCategoryDetailPage.play(context)
// in an upcoming canary the .input would not be needed for play functions
await ToCategoryDetailPage.input.play?.(context)
const { canvasElement, step, userEvent } = context

const canvas = within(canvasElement)
Expand All @@ -82,7 +84,8 @@ export const ToRestaurantDetailPage = meta.story({

export const ToCheckoutPage = meta.story({
play: async (context) => {
await ToRestaurantDetailPage.play(context)
// in an upcoming canary the .input would not be needed for play functions
await ToRestaurantDetailPage.input.play?.(context)
const { canvasElement, userEvent, step } = context

const canvas = within(canvasElement)
Expand Down Expand Up @@ -121,7 +124,8 @@ export const ToCheckoutPage = meta.story({

export const ToSuccessPage = meta.story({
play: async (context) => {
await ToCheckoutPage.play(context)
// in an upcoming canary the .input would not be needed for play functions
await ToCheckoutPage.input.play?.(context)
const { canvas, step, userEvent } = context

await step('Fill in user details', async () => {
Expand Down

0 comments on commit 26d026f

Please sign in to comment.