Skip to content

Commit

Permalink
Add block name in insertBlock command.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Aug 8, 2024
1 parent a1c8102 commit 554fa37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/cypress/e2e/connect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/e2e/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 554fa37

Please sign in to comment.