Skip to content

Commit

Permalink
Add a few wait commands to ensure settings are saved properly before …
Browse files Browse the repository at this point in the history
…we proceed
  • Loading branch information
dkotter committed Nov 20, 2024
1 parent 94201f8 commit 220838a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Cypress.Commands.add( 'enableFeatureForRoles', ( feature, roles ) => {
} );
cy.wait( 100 );
cy.saveFeatureSettings();
cy.wait( 500 );
} );

/**
Expand Down Expand Up @@ -189,6 +190,8 @@ Cypress.Commands.add( 'disableFeatureForRoles', ( feature, roles ) => {
cy.disableFeatureForUsers();

cy.saveFeatureSettings();

cy.wait( 500 );
} );

/**
Expand Down

0 comments on commit 220838a

Please sign in to comment.