From c64a52e987eae830bbf63bee294964cad04c5a16 Mon Sep 17 00:00:00 2001 From: Jungmin Date: Mon, 14 Oct 2024 21:31:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Cypress=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/e2e/spec.cy.ts | 3 +++ src/setupTests.ts | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/spec.cy.ts b/cypress/e2e/spec.cy.ts index 82d79f4..b4ca10b 100644 --- a/cypress/e2e/spec.cy.ts +++ b/cypress/e2e/spec.cy.ts @@ -17,5 +17,8 @@ describe("로그인 페이지 테스트", () => { cy.get('input[placeholder="이메일"]').type("wrong@naver.com"); cy.get('input[placeholder="비밀번호"]').type("wrongnumber"); cy.contains("로그인").click(); + + // 실패 시 에러 메시지 확인 + cy.contains("로그인에 실패했습니다. 다시 시도해 주세요."); }); }); diff --git a/src/setupTests.ts b/src/setupTests.ts index c8cd8d2..08b3f01 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -1,8 +1,6 @@ import "@testing-library/jest-dom"; -/* msw */ - -beforeAll(() => {}); +beforeEach(() => {}); afterEach(() => { /**