Skip to content

Commit 554fa37

Browse files
committed
Add block name in insertBlock command.
1 parent a1c8102 commit 554fa37

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/cypress/e2e/connect.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ describe('Admin can connect to "Mailchimp" Account', () => {
2121
cy.capturePopup();
2222

2323
cy.get('#mailchimp_sf_oauth_connect').click();
24-
cy.wait(5000);
24+
cy.wait(6000);
2525

2626
cy.popup().find('input#username').clear().type(Cypress.env('MAILCHIMP_USERNAME'));
2727
cy.popup().find('input#password').clear().type(Cypress.env('MAILCHIMP_PASSWORD'));
2828
cy.popup().find('button[type="submit"]').click();
29-
cy.wait(8000); // Not a best practice, but did not find a better way to handle this.
29+
cy.wait(10000); // Not a best practice, but did not find a better way to handle this.
3030

3131
cy.popup().find('input#submitButton').click();
3232
cy.wait(10000); // Not a best practice, but did not find a better way to handle this.

tests/cypress/e2e/settings.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Admin can update plugin settings', () => {
4040
it('Admin can create a Signup form using Mailchimp block', () => {
4141
const postTitle = 'Mailchimp signup form - Block';
4242
const beforeSave = () => {
43-
cy.insertBlock('mailchimp/mailchimp');
43+
cy.insertBlock('mailchimp/mailchimp', 'Mailchimp List Subscribe Form');
4444
};
4545
cy.createPost({ title: postTitle, content: '', beforeSave }).then((post) => {
4646
if (post) {

0 commit comments

Comments
 (0)