Skip to content

Commit 1caefec

Browse files
committed
Fix shortcode form create issue.
1 parent c633d39 commit 1caefec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cypress/e2e/settings.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ describe('Admin can update plugin settings', () => {
2020
const postTitle = 'Mailchimp signup form - shortcode';
2121
const beforeSave = () => {
2222
cy.insertBlock('core/shortcode').then((id) => {
23-
cy.get(`#${id} .blocks-shortcode__textarea`).type('[mailchimpsf_form]');
23+
cy.getBlockEditor()
24+
.find(`#${id} .blocks-shortcode__textarea`)
25+
.clear()
26+
.type('[mailchimpsf_form]');
2427
});
2528
};
2629
cy.createPost({ title: postTitle, content: '', beforeSave }).then((post) => {
@@ -41,6 +44,7 @@ describe('Admin can update plugin settings', () => {
4144
const postTitle = 'Mailchimp signup form - Block';
4245
const beforeSave = () => {
4346
cy.insertBlock('mailchimp/mailchimp', 'Mailchimp List Subscribe Form');
47+
cy.wait(500);
4448
};
4549
cy.createPost({ title: postTitle, content: '', beforeSave }).then((postBlock) => {
4650
if (postBlock) {

0 commit comments

Comments
 (0)