Skip to content

Commit

Permalink
remove screen references
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed Nov 17, 2022
1 parent af247da commit 202154d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const SecondStory: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

await userEvent.type(screen.getByTestId('other-element'), 'another value');
await userEvent.type(canvas.getByTestId('other-element'), 'another value');
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const SecondStory = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

await userEvent.type(screen.getByTestId('other-element'), 'another value');
await userEvent.type(canvas.getByTestId('other-element'), 'another value');
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const FirstStory: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

userEvent.type(screen.getByTestId('an-element'), 'example-value');
userEvent.type(canvas.getByTestId('an-element'), 'example-value');
},
};

Expand All @@ -44,7 +44,7 @@ export const SecondStory: Story = {
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);

await userEvent.type(screen.getByTestId('other-element'), 'another value');
await userEvent.type(canvas.getByTestId('other-element'), 'another value');
},
};

Expand Down

0 comments on commit 202154d

Please sign in to comment.