Skip to content

Commit

Permalink
Updated authentication test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwroge committed Oct 30, 2024
1 parent 39e92a9 commit f2c0801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/test-authentication.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ describe('Authentication', () => {
it('should have access to user data after signin', function () {
cy.visit('/signin');
loginUsingUI(this.password, this.email);
cy.wait('@signin').its('response.statusCode').should('be.within', 200, 299);
cy.wait('@user').then(intercept => {

cy.wait('@signin').then(intercept => {
expect(intercept.response?.statusCode).eq(200);
const body = intercept.response?.body;
expect(body).to.have.property('user');
Expand Down

0 comments on commit f2c0801

Please sign in to comment.