Skip to content

Commit 7a0d228

Browse files
committed
fix: only reload after login, not after register
1 parent 4e81ebe commit 7a0d228

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cypress/support/commands.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Cypress.Commands.add('login', (path) => {
5353
cy.get('input[name="password"]').type('Abc12345678');
5454
cy.get('button[type="submit"]').click();
5555
cy.wait('@sessionCheck').its('response.statusCode').should('equal', 200);
56+
cy.reload();
5657
}
5758
// Register
5859
if ($body.text().includes('Credentials are only used to authenticate in Strapi')) {
@@ -64,8 +65,6 @@ Cypress.Commands.add('login', (path) => {
6465
cy.wait('@sessionCheck').its('response.statusCode').should('equal', 200);
6566
}
6667
});
67-
68-
cy.reload();
6968
});
7069

7170
Cypress.Commands.add('navigateToInterface', (path) => {

0 commit comments

Comments
 (0)