[cs frontend] 로그인 페이지 에러 로그 변경
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -6,6 +6,8 @@ import { defineConfig, devices } from "@playwright/test";
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: "./tests",
|
||||
/* Vitest 단위 테스트 파일들을 Playwright 테스트 대상에서 제외 */
|
||||
testIgnore: "**/unit/**",
|
||||
/* 하나의 테스트 파일 내에서 병렬 실행 금지 및 직렬 실행으로 세션 상태 격리 보장 */
|
||||
fullyParallel: false,
|
||||
/* Redis 및 PostgreSQL 공유 자원의 세션 정렬을 위해 워커를 1개로 제한 */
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "failed",
|
||||
"failedTests": [
|
||||
"7cf08488f825bec651e1-31e606ad69300bb6fcd0",
|
||||
"7cf08488f825bec651e1-9eda3d84416d28db938c",
|
||||
"7cf08488f825bec651e1-bbbe7f77241a3995edcb"
|
||||
]
|
||||
}
|
||||
@@ -34,12 +34,13 @@ describe("LoginPage 단위 테스트 (Vitest)", () => {
|
||||
|
||||
beforeAll(() => {
|
||||
// window.location.href 변경 감지를 위해 window.location 모킹
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
delete window.location;
|
||||
window.location = { ...originalLocation, href: "" } as any;
|
||||
window.location = { ...originalLocation, href: "" } as never;
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
// @ts-expect-error
|
||||
window.location = originalLocation;
|
||||
});
|
||||
|
||||
@@ -104,7 +105,7 @@ describe("LoginPage 단위 테스트 (Vitest)", () => {
|
||||
|
||||
it("3. 로그인 성공 시 /dashboard 로 리다이렉트되는지 검증", async () => {
|
||||
// authService.login 성공 모크 구현
|
||||
vi.mocked(authService.login).mockResolvedValueOnce(undefined as any);
|
||||
vi.mocked(authService.login).mockResolvedValueOnce(undefined as never);
|
||||
|
||||
render(<LoginPage />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user