diff --git a/tests/cypress/e2e/Add-Ons/validateAddOnsPage.cy.js b/tests/cypress/e2e/Add-Ons/validateAddOnsPage.cy.js index 381f0f747f..7690a86090 100644 --- a/tests/cypress/e2e/Add-Ons/validateAddOnsPage.cy.js +++ b/tests/cypress/e2e/Add-Ons/validateAddOnsPage.cy.js @@ -640,7 +640,7 @@ describe("Add-Ons page", () => { cy.log("ConvertKit card"); cy.get('li[data-slug="convertkit"]').within(() => { cy.get('.frm-font-medium.frm-truncate').should('contain.text', 'ConvertKit'); - cy.get('svg.frmsvg > use').should('have.attr', 'xlink:href', '#frm_logo_icon'); + cy.get('svg.frmsvg > use').should('have.attr', 'xlink:href', '#frm_convertkit_icon'); cy.get('p.frm-line-clamp-2').should('contain.text', 'Bring automation into your email marketing plan for the power to say "welcome" to your subscribers the moment they opt-in to your list.'); cy.contains('Plan required:').within(() => { cy.get('a').should('have.attr', 'href', 'https://formidableforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=addons&utm_campaign=liteplugin%20&%20utm_content%20=%20convertkit').and('contain.text', 'Plus'); diff --git a/tests/cypress/e2e/Applications/validateApplicationsPage.cy.js b/tests/cypress/e2e/Applications/validateApplicationsPage.cy.js index 19c152d59e..4fd876be6b 100644 --- a/tests/cypress/e2e/Applications/validateApplicationsPage.cy.js +++ b/tests/cypress/e2e/Applications/validateApplicationsPage.cy.js @@ -16,7 +16,13 @@ describe("Applications page", () => { cy.get('#frm_custom_applications_placeholder > :nth-child(2) > .button').should('contain', 'Upgrade to Pro').invoke('removeAttr', 'target').click(); cy.origin('https://formidableforms.com', () => { - cy.get('h1').should('have.text', 'Upgrade Today to Unlock the Full Power of Formidable Forms'); + cy.get('h1').should(($h1) => { + const text = $h1.text(); + expect(text).to.satisfy((t) => + t.includes('The Only WordPress Form Maker & Application Builder Plugin') || + t.includes('Upgrade Today to Unlock the Full Power of Formidable Forms') + ); + }); }); cy.visit('/wp-admin/admin.php?page=formidable-applications'); diff --git a/tests/cypress/e2e/Form Templates/FormTemplates.cy.js b/tests/cypress/e2e/Form Templates/FormTemplates.cy.js index e5c25dfc3d..468a53bcc5 100644 --- a/tests/cypress/e2e/Form Templates/FormTemplates.cy.js +++ b/tests/cypress/e2e/Form Templates/FormTemplates.cy.js @@ -343,7 +343,7 @@ describe("Form Templates page", () => { cy.get('a#frm-code-modal-back-button') .should('contain.text', 'Back') - .and('have.attr', 'role', 'button').click(); + .and('have.attr', 'role', 'button').click({force:true}); cy.get('a#frm-get-code-button').click(); @@ -386,8 +386,9 @@ describe("Form Templates page", () => { cy.get('#frm-upgrade-modal-link').should("contain", "Upgrade to PRO").invoke('removeAttr', 'target').click(); cy.origin('https://formidableforms.com', () => { - cy.get('h1.wp-block-heading').should('have.text', 'Upgrade Today to Unlock the Full Power of Formidable Forms'); + cy.url().should('include', 'https://formidableforms.com'); }); + }); it("create a new custom template and delete it", () => { diff --git a/tests/cypress/e2e/Forms/formPageDataValidation.cy.js b/tests/cypress/e2e/Forms/formPageDataValidation.cy.js index 1d715b6449..5bcad75bf7 100644 --- a/tests/cypress/e2e/Forms/formPageDataValidation.cy.js +++ b/tests/cypress/e2e/Forms/formPageDataValidation.cy.js @@ -14,18 +14,13 @@ describe("Forms page", () => { cy.log("Validate all header data"); cy.log("Validate the upgrade link"); cy.get('.frm-upgrade-bar > a') - .should('have.text', 'upgrading to PRO') - .and('have.attr', 'href', formidableFormsUpgradeUrl) - .then(link => { - cy.wrap(link).invoke('removeAttr', 'target').click(); - - cy.origin('https://formidableforms.com', { args: { formidableFormsUpgradeUrl } }, ({ formidableFormsUpgradeUrl }) => { - cy.location('href').should('eq', formidableFormsUpgradeUrl); - }); + .should('have.text', 'upgrading to PRO').click(); + cy.origin('https://formidableforms.com', () => { + cy.get('h1').should('have.text', 'The Only WordPress Form Maker & Application Builder Plugin'); + }); - cy.log("Navigate back to the original page"); - cy.visit('/wp-admin/admin.php?page=formidable'); - }); + cy.log("Navigate back to the original page"); + cy.visit('/wp-admin/admin.php?page=formidable'); cy.log("Validate the header logo link"); cy.get('a.frm-header-logo')