Skip to content

Commit

Permalink
chore: improve test and ensure is not dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Mar 21, 2024
1 parent 0889802 commit 3152556
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cypress/integration/default/free-upsell.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ describe('Test Free - upsells', function() {
cy.get('#wp-submit').click();
});

it('Check upsell links', function() {
beforeEach(() => {
cy.visit(Cypress.env('urls').library );
cy.get('.visualizer-chart > .visualizer-chart-canvas > .visualizer-notfound > h2 > .add-new-h2').click()
cy.get('.add-new-h2.add-new-chart').first().click();
cy.wait( Cypress.env('wait') );
});

it('Check upsell links', function() {
cy.get('iframe')
.then(function ($iframe) {
const $body = $iframe.contents().find('body');
Expand Down Expand Up @@ -74,10 +76,6 @@ describe('Test Free - upsells', function() {
});

it('Check Settings upsell links', function() {
cy.visit(Cypress.env('urls').library );
cy.get('.visualizer-chart > .visualizer-chart-canvas > .visualizer-notfound > h2 > .add-new-h2').click()
cy.wait( Cypress.env('wait') );

cy.get('iframe')
.then(function ($iframe) {
const $body = $iframe.contents().find('body');
Expand Down

0 comments on commit 3152556

Please sign in to comment.