File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ describe('Admin can update plugin settings', () => {
20
20
const postTitle = 'Mailchimp signup form - shortcode' ;
21
21
const beforeSave = ( ) => {
22
22
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]' ) ;
24
27
} ) ;
25
28
} ;
26
29
cy . createPost ( { title : postTitle , content : '' , beforeSave } ) . then ( ( post ) => {
@@ -41,6 +44,7 @@ describe('Admin can update plugin settings', () => {
41
44
const postTitle = 'Mailchimp signup form - Block' ;
42
45
const beforeSave = ( ) => {
43
46
cy . insertBlock ( 'mailchimp/mailchimp' , 'Mailchimp List Subscribe Form' ) ;
47
+ cy . wait ( 500 ) ;
44
48
} ;
45
49
cy . createPost ( { title : postTitle , content : '' , beforeSave } ) . then ( ( postBlock ) => {
46
50
if ( postBlock ) {
You can’t perform that action at this time.
0 commit comments