From 833615970662992a3b4f43ef2468368a7be312ac Mon Sep 17 00:00:00 2001 From: jung-han Date: Tue, 12 Dec 2023 20:33:32 +0900 Subject: [PATCH] shopping-mall-e2e-test-with-answer --- cypress/support/commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 5d0a22e..50fcced 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -10,6 +10,8 @@ Cypress.Commands.add('login', () => { cy.findByLabelText('이메일').type(username); cy.findByLabelText('비밀번호').type(password); cy.findByLabelText('로그인').click(); + + cy.location('pathname').should('eq', '/'); }); // 로그인 이후 메인 홈페이지로 이동