Skip to content

Commit

Permalink
chore: e2e hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Aug 7, 2023
1 parent 566b37e commit 88e7cc9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/blocks/test/e2e/blocks/form.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ test.describe( 'Form Block', () => {
helpText: 'This is a help text',
allowedFileTypes: [ 'text/plain', 'image/*' ]
}
},
{
name: 'themeisle-blocks/form-nonce'
}
] });

Expand All @@ -192,6 +195,8 @@ test.describe( 'Form Block', () => {

const postId = await editor.publishPost();

await page.waitForTimeout( 1700 );

await page.goto( `/?p=${postId}` );

const fileInput = await page.$( `#${attributes.id} input[type="file"]` );
Expand Down Expand Up @@ -233,6 +238,9 @@ test.describe( 'Form Block', () => {
label: 'Hidden Field Test',
paramName: 'test'
}
},
{
name: 'themeisle-blocks/form-nonce'
}
] });

Expand All @@ -251,6 +259,8 @@ test.describe( 'Form Block', () => {

const postId = await editor.publishPost();

await page.waitForTimeout( 1500 );

await page.goto( `/?p=${postId}&test=123` );

const hiddenInput = await page.locator( `#${attributes.id} input[type="hidden"]` );
Expand Down

0 comments on commit 88e7cc9

Please sign in to comment.