Skip to content

Commit

Permalink
Merge pull request #17378 from jonbeller/patch-4
Browse files Browse the repository at this point in the history
Update login-form-with-play-function.js.mdx
  • Loading branch information
jonniebigodes authored and shilman committed Feb 1, 2022
1 parent 265db62 commit 2cefd3a
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {

export const FilledForm = {
play: async ({ args, canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Template = (args) => ({ props: args });
<Story
name="Filled Form"
play={async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/angular/login-form-with-play-function.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const EmptyForm: Story = Template.bind({});

export const FilledForm: Story = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {

export const ExampleStory = {
play: async ({ args, canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@email-provider.com');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
export const FilledForm = {
play: async ({ args, canvasElement }) => {

// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email');
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/react/login-form-with-play-function.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const EmptyForm = Template.bind({});

export const FilledForm = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand All @@ -35,4 +35,4 @@ FilledForm.play = async ({ canvasElement }) => {
// See https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
await userEvent.click(canvas.getByRole('button'));
};
```
```
2 changes: 1 addition & 1 deletion docs/snippets/react/login-form-with-play-function.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Template = (args) => <LoginForm {...args} />;
<Story
name="Filled Form"
play={async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/react/login-form-with-play-function.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const EmptyForm = Template.bind({});

export const FilledForm = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {

export const FilledForm = {
play: async ({ args, canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email');
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/svelte/login-form-with-play-function.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const EmptyForm = Template.bind({});

export const FilledForm = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/svelte/login-form-with-play-function.mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Template = (args) => ({
name="Filled Form"
play={async ({ canvasElement }) => {

// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {

export const FilledForm = {
play: async ({ args, canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {

export const FilledForm = {
play: async ({ args, canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email');
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/vue/login-form-with-play-function.2.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const EmptyForm = Template.bind({});

export const FilledForm = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/vue/login-form-with-play-function.3.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const EmptyForm = Template.bind({});

export const FilledForm = Template.bind({});
FilledForm.play = async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/vue/login-form-with-play-function.mdx-2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Template = (args, { argTypes }) => ({
<Story
name="Filled Form"
play={async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element
const canvas = within(canvasElement);

await userEvent.type(canvas.getByTestId('email'), 'email@provider.com', {
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/vue/login-form-with-play-function.mdx-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Template = (args) => ({
<Story
name="Filled Form"
play={async ({ canvasElement }) => {
// Starts querying the component from it's root element
// Starts querying the component from its root element

const canvas = within(canvasElement);

Expand Down

0 comments on commit 2cefd3a

Please sign in to comment.