-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test/160-application-chapter
- Loading branch information
Showing
20 changed files
with
1,581 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
frontend/components/common/navbar/NavbarGenerationToggle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import CommonNavbarCell from "./NavbarCell"; | ||
import { CURRENT_GENERATION } from "@/src/constants"; | ||
|
||
type NavbarGenerationToggleProps = { | ||
generation: string; | ||
isShort: boolean; | ||
}; | ||
export const NavbarGenerationToggle = ({ | ||
generation, | ||
isShort, | ||
}: NavbarGenerationToggleProps) => { | ||
const isCurrentGeneration = +generation === CURRENT_GENERATION; | ||
const targetGeneration = isCurrentGeneration | ||
? CURRENT_GENERATION - 1 | ||
: CURRENT_GENERATION; | ||
|
||
const short_title = isCurrentGeneration ? "지난 모집" : "현재 모집"; | ||
const title = isCurrentGeneration | ||
? "지난 신입모집 보기" | ||
: "현재 신입모집 보기"; | ||
|
||
return ( | ||
<CommonNavbarCell | ||
currentType="kanban" | ||
isShort={isShort} | ||
href={`/kanban/${targetGeneration}`} | ||
short_title={short_title} | ||
title={title} | ||
type="toggle" | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
frontend/components/kanban/column/ColumnWithBackButton.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
frontend/cypress/e2e/application.second-personal-information.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
describe("2번째 인적사항 e2e 테스트", () => { | ||
beforeEach(() => { | ||
cy.viewport(1200, 900); | ||
|
||
cy.goSecondPersonalInformation(); | ||
|
||
cy.get("span") | ||
.filter((index, element) => Cypress.$(element).text().trim() === "전공*") | ||
.parent() | ||
.next("input") | ||
.as("major"); | ||
|
||
cy.get("span") | ||
.filter( | ||
(index, element) => Cypress.$(element).text().trim() === "복수전공" | ||
) | ||
.parent() | ||
.next("input") | ||
.as("revengeMajor"); | ||
|
||
cy.get("span") | ||
.filter((index, element) => Cypress.$(element).text().trim() === "부전공") | ||
.parent() | ||
.next("input") | ||
.as("minor"); | ||
|
||
cy.get("button").contains("다음").as("nextButton"); | ||
}); | ||
|
||
it("전공 입력 후 다음 버튼 클릭하면 기타 질문 사항으로 이동", () => { | ||
cy.get("@major").type("컴퓨터정보통신공학과"); | ||
cy.get("@nextButton").click(); | ||
}); | ||
|
||
it("전공, 복수전공 입력 후 다음 버튼 클릭하면 기타 질문 사항으로 이동", () => { | ||
cy.get("@major").type("컴퓨터정보통신공학과"); | ||
cy.get("@revengeMajor").type("건축학과"); | ||
cy.get("@nextButton").click(); | ||
}); | ||
|
||
it("전공, 부전공 입력 후 다음 버튼 클릭하면 기타 질문 사항으로 이동", () => { | ||
cy.get("@major").type("컴퓨터정보통신공학과"); | ||
cy.get("@minor").type("물리학과"); | ||
cy.get("@nextButton").click(); | ||
}); | ||
|
||
it("전공, 복수전공, 부전공 입력 후 다음 버튼 클릭하면 기타 질문 사항으로 이동", () => { | ||
cy.get("@major").type("컴퓨터정보통신공학과"); | ||
cy.get("@revengeMajor").type("건축학과"); | ||
cy.get("@minor").type("물리학과"); | ||
cy.get("@nextButton").click(); | ||
}); | ||
|
||
it("아무것도 입력하지 않고 다음 버튼 클릭하면 '필수 질문을 작성해주세요.'라는 alert창이 보인다.", () => { | ||
cy.get("@nextButton").click(); | ||
cy.on("window:alert", (text) => { | ||
console.log("Alert message:", text); | ||
}); | ||
}); | ||
|
||
it("전공을 입력하지 않고 복수전공, 부전공을 입력 후 다음 버튼 클릭하면 '필수 질문을 작성해주세요.'라는 alert창이 보인다.", () => { | ||
cy.get("@revengeMajor").type("건축학과"); | ||
cy.get("@minor").type("물리학과"); | ||
cy.get("@nextButton").click(); | ||
cy.on("window:alert", (text) => { | ||
console.log("Alert message:", text); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.