Skip to content

Commit b08d556

Browse files
Copilotrenemadsen
andcommitted
Fix Cypress password test to use correct HTTP method (POST) and endpoint
Co-authored-by: renemadsen <[email protected]>
1 parent 9c5c831 commit b08d556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eform-client/cypress/e2e/PasswordSettings.page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PasswordSettingsPage extends PageWithNavbarPage {
2525
cy.wait(500);
2626
this.newPasswordConfirmationField().should('be.visible').clear().type(newPassword);
2727
cy.wait(500);
28-
cy.intercept('PUT', '**/api/auth/change-password').as('changePassword');
28+
cy.intercept('POST', '**/api/account/change-password').as('changePassword');
2929
this.saveBtn().should('be.visible').should('be.enabled').click();
3030
cy.wait('@changePassword', { timeout: 10000 });
3131
}
@@ -37,7 +37,7 @@ class PasswordSettingsPage extends PageWithNavbarPage {
3737
cy.wait(500);
3838
this.newPasswordConfirmationField().should('be.visible').clear().type(newPassword);
3939
cy.wait(500);
40-
cy.intercept('PUT', '**/api/auth/change-password').as('changePassword');
40+
cy.intercept('POST', '**/api/account/change-password').as('changePassword');
4141
this.saveBtn().should('be.visible').should('be.enabled').click();
4242
cy.wait('@changePassword', { timeout: 10000 });
4343
}

0 commit comments

Comments
 (0)