Skip to content

Commit

Permalink
Test: 전공을 입력하지 않고 복수전공, 부전공을 입력 후 버튼 클릭 ->
Browse files Browse the repository at this point in the history
테스트 코드 작성
  • Loading branch information
smb0123 committed Aug 23, 2024
1 parent b091085 commit 26f4eba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/cypress/e2e/application.second-personal-information.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,16 @@ describe("2번째 인적사항 e2e 테스트", () => {
console.log("Alert message:", text);
});
});

it("전공을 입력하지 않고 복수전공, 부전공을 입력 후 버튼 클릭", () => {
cy.goSecondPersonalInformation();
cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(1).type("건축학과");
cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(2).type("물리학과");
cy.get(
".flex-1.rounded-md.flex.justify-center.items-center.p-4.bg-dark.text-white"
).click();
cy.on("window:alert", (text) => {
console.log("Alert message:", text);
});
});
});

0 comments on commit 26f4eba

Please sign in to comment.