Skip to content

Commit

Permalink
shopping-mall-e2e-test
Browse files Browse the repository at this point in the history
  • Loading branch information
bard-js committed Dec 16, 2023
1 parent 8a1e8e2 commit b2c163c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Cypress.Commands.add('login', () => {
cy.findByLabelText('이메일').type(username);
cy.findByLabelText('비밀번호').type(password);
cy.findByLabelText('로그인').click();

cy.location('pathname').should('eq', '/');
});

// 로그인 이후 메인 홈페이지로 이동
cy.visit('/');
// 로그인 처리 완료될때까지 기다림
cy.findByText('Maria');
});

Cypress.Commands.add('logout', () => {
Expand Down

0 comments on commit b2c163c

Please sign in to comment.