Skip to content

Commit

Permalink
Merge pull request #30365 from kirjs/patch-1
Browse files Browse the repository at this point in the history
Docs: Play function updates to the canvas example
  • Loading branch information
jonniebigodes authored Jan 29, 2025
2 parents db633c6 + da7b738 commit c9a7dfa
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/_snippets/my-component-play-function-with-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand Down Expand Up @@ -49,7 +49,7 @@ export const ExampleStory: Story = {
// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
}} />
```

Expand All @@ -69,7 +69,7 @@ export const ExampleStory = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -90,7 +90,7 @@ export const ExampleStory = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -116,7 +116,7 @@ export const ExampleStory = {
// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
}} />
```

Expand All @@ -141,7 +141,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -168,7 +168,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -193,7 +193,7 @@ export const ExampleStory: Story = {
// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
}} />
```

Expand All @@ -218,7 +218,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -245,7 +245,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -264,7 +264,7 @@ export const ExampleStory = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```
Expand All @@ -287,7 +287,7 @@ export const ExampleStory: Story = {

// Starts querying from the component's root element
await userEvent.type(canvas.getByTestId('example-element'), 'something');
await userEvent.click(canvas.getByRole('another-element'));
await userEvent.click(canvas.getByRole('button'));
},
};
```

0 comments on commit c9a7dfa

Please sign in to comment.