From 554fa372ba3fb9d8e91333053320adb5a45c328d Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Thu, 8 Aug 2024 20:28:02 +0530 Subject: [PATCH] Add block name in insertBlock command. --- tests/cypress/e2e/connect.test.js | 4 ++-- tests/cypress/e2e/settings.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cypress/e2e/connect.test.js b/tests/cypress/e2e/connect.test.js index 411bcd9..e29942a 100644 --- a/tests/cypress/e2e/connect.test.js +++ b/tests/cypress/e2e/connect.test.js @@ -21,12 +21,12 @@ describe('Admin can connect to "Mailchimp" Account', () => { cy.capturePopup(); cy.get('#mailchimp_sf_oauth_connect').click(); - cy.wait(5000); + cy.wait(6000); cy.popup().find('input#username').clear().type(Cypress.env('MAILCHIMP_USERNAME')); cy.popup().find('input#password').clear().type(Cypress.env('MAILCHIMP_PASSWORD')); cy.popup().find('button[type="submit"]').click(); - cy.wait(8000); // Not a best practice, but did not find a better way to handle this. + cy.wait(10000); // Not a best practice, but did not find a better way to handle this. cy.popup().find('input#submitButton').click(); cy.wait(10000); // Not a best practice, but did not find a better way to handle this. diff --git a/tests/cypress/e2e/settings.test.js b/tests/cypress/e2e/settings.test.js index 8d06de2..a6d411b 100644 --- a/tests/cypress/e2e/settings.test.js +++ b/tests/cypress/e2e/settings.test.js @@ -40,7 +40,7 @@ describe('Admin can update plugin settings', () => { it('Admin can create a Signup form using Mailchimp block', () => { const postTitle = 'Mailchimp signup form - Block'; const beforeSave = () => { - cy.insertBlock('mailchimp/mailchimp'); + cy.insertBlock('mailchimp/mailchimp', 'Mailchimp List Subscribe Form'); }; cy.createPost({ title: postTitle, content: '', beforeSave }).then((post) => { if (post) {