Skip to content

Commit 166863a

Browse files
loop till max available charts
1 parent ad60bc4 commit 166863a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/integration/free-gutenberg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('Test Free - gutenberg', function() {
4242
cy.wrap($pages).each((page, i, array) => {
4343
var charts = [];
4444
cy.wrap(charts).then( () => {
45-
for(var i = page * 6; i < (page * 6) + 6; i++){
45+
for(var i = page * 6; i < ( ( (page * 6) + 6 ) > Cypress.env('chart_types').free ? Cypress.env('chart_types').free : ( (page * 6) + 6 ) ); i++){
4646
charts.push(i + 1);
4747
}
4848
});

0 commit comments

Comments
 (0)