-
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 pull request #40 from LikeLion-KNU/e2e/home
E2�E: 홈페이지 기능 E2E 테스트
- Loading branch information
Showing
7 changed files
with
1,674 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,6 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
|
||
.aws | ||
.aws | ||
|
||
docs/bundle.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
describe("사용자는 이름, 단과대학을 선택하면 테스트를 시작할 수 있다", () => { | ||
it("이름, 단과대학을 선택하면 테스트를 시작할 수 있다", () => { | ||
cy.visit("/"); | ||
|
||
cy.get("input[placeholder='이름을 입력하세용'").type("TESTNAME"); | ||
}); | ||
|
||
it("이름, 단과대학을 선택하지 않으면 테스트를 시작할 수 없다", () => { | ||
cy.visit("/"); | ||
|
||
cy.get("button").contains("테스트 시작하기").click(); | ||
cy.url().should("not.include", "select"); | ||
}); | ||
}); | ||
|
||
describe("사용자는 우측 상단의 메뉴 버튼을 사용해 테스트/통계/만든이들 페이지로 이동 할 수 있다", () => { | ||
it("사용자는 통계 페이지로 이동할 수 있다", () => { | ||
cy.visit("/"); | ||
|
||
cy.get("#root > div > main > div:first-child > div:first-child").click(); | ||
cy.get("li").contains("통계").click(); | ||
cy.url().should("include", "/analytics"); | ||
}); | ||
|
||
it("사용자는 만든이들 페이지로 이동 할 수 있다", () => { | ||
cy.visit("/"); | ||
|
||
cy.get("#root > div > main > div:first-child > div:first-child").click(); | ||
cy.get("li").contains("만든이들").click(); | ||
cy.url().should("include", "/credits"); | ||
}); | ||
}); |
Empty file.
Oops, something went wrong.