Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/cypress/e2e/Add-Ons/validateAddOnsPage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
5 changes: 3 additions & 2 deletions tests/cypress/e2e/Form Templates/FormTemplates.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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');
});

Comment thread
Crabcyborg marked this conversation as resolved.
});

it("create a new custom template and delete it", () => {
Expand Down
17 changes: 6 additions & 11 deletions tests/cypress/e2e/Forms/formPageDataValidation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down