Skip to content

Commit ec3d8ff

Browse files
cypress: permissions tab disabled in free
1 parent 5601552 commit ec3d8ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cypress/support/commands.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ Cypress.Commands.add( 'test_advanced_settings', ($create_new_chart) => {
194194

195195
// cycle through each accordion and sub-accordion and set values in each input element.
196196
cy.wrap($body).find('#settings-form').within( ($form) => {
197-
cy.get('.viz-group-title').each( ($section) => {
197+
// click non disabled sections
198+
cy.get('.viz-group:not(.only-pro-feature) .viz-group-title').each( ($section) => {
198199
cy.wrap($section).click().then( () => {
199200
cy.wrap($section).siblings('.viz-group-content').first().then( ($tab) => {
200201
if($tab.find('li.viz-subsection').length > 0){
@@ -240,7 +241,7 @@ Cypress.Commands.add( 'test_advanced_settings', ($create_new_chart) => {
240241

241242
// cycle through each accordion and sub-accordion and set values in each input element.
242243
cy.wrap($body).find('#settings-form').within( ($form) => {
243-
cy.get('.viz-group-title').each( ($section) => {
244+
cy.get('.viz-group:not(.only-pro-feature) .viz-group-title').each( ($section) => {
244245
cy.wrap($section).click().then( () => {
245246
cy.wrap($section).siblings('.viz-group-content').first().then( ($tab) => {
246247
if($tab.find('li.viz-subsection').length > 0){

0 commit comments

Comments
 (0)