Skip to content

Commit c588b95

Browse files
Merge pull request #573 from contactashish13/issue-567
better handling of chart types screen
2 parents 81e5c15 + a875ac5 commit c588b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/integration/free-lifecycle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ describe('Test Free - lifecycle', function() {
4040
const $body = $iframe.contents().find('body');
4141

4242
// chart selection screen - types
43-
cy.wrap($body).find('.type-box').should( "have.length", 14 );
43+
cy.wrap($body).find('.type-box').should( "have.length", Cypress.env('chart_types').free ) + parseInt( Cypress.env('chart_types').pro ) );
4444

4545
// chart selection screen - pro types
46-
cy.wrap($body).find('.type-box span.visualizder-pro-label').should( "have.length", 6 );
46+
cy.wrap($body).find('.type-box span.visualizder-pro-label').should( "have.length", Cypress.env('chart_types').pro );
4747

4848
// toolbar
4949
// cancel button

0 commit comments

Comments
 (0)