Skip to content

Commit 56d63f4

Browse files
committed
Remove all credential reuse tests
1 parent cb5bb68 commit 56d63f4

File tree

2 files changed

+1
-227
lines changed

2 files changed

+1
-227
lines changed

tests/cypress/integration/admin/credential-reuse-modal.test.js

Lines changed: 0 additions & 203 deletions
This file was deleted.

tests/cypress/support/commands.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,7 @@ Cypress.Commands.add( 'saveGeneralSettings', () => {
635635
/**
636636
* Enable Feature.
637637
*/
638-
Cypress.Commands.add( 'enableFeature', ( disableCredentialReuseModal = true ) => {
639-
if ( disableCredentialReuseModal ) {
640-
cy.disableCredentialReuseModal();
641-
}
638+
Cypress.Commands.add( 'enableFeature', () => {
642639
cy.get( '.classifai-enable-feature-toggle input[type="checkbox"]' ).check();
643640
} );
644641

@@ -867,26 +864,6 @@ Cypress.Commands.add( 'classicCreateProduct', ( { title, content } ) => {
867864
cy.get( '#content' ).type( content );
868865
} );
869866

870-
/**
871-
* Disable credential reuse modal for all tests.
872-
* This prevents the modal from appearing when enabling features.
873-
*/
874-
Cypress.Commands.add( 'disableCredentialReuseModal', () => {
875-
cy.window().then( ( win ) => {
876-
win.localStorage.setItem( 'classifai_dont_ask_credential_reuse', 'true' );
877-
} );
878-
} );
879-
880-
/**
881-
* Enable credential reuse modal (for testing the modal itself).
882-
* This allows the modal to appear when enabling features.
883-
*/
884-
Cypress.Commands.add( 'enableCredentialReuseModal', () => {
885-
cy.window().then( ( win ) => {
886-
win.localStorage.removeItem( 'classifai_dont_ask_credential_reuse' );
887-
} );
888-
} );
889-
890867
/**
891868
* Disable feature if already enabled.
892869
*/

0 commit comments

Comments
 (0)