-
Notifications
You must be signed in to change notification settings - Fork 0
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 #39 from deipanema/refactoring-3
Refactoring 3
- Loading branch information
Showing
39 changed files
with
1,189 additions
and
1,594 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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
version: 2.1 | ||
orbs: | ||
cypress: cypress-io/cypress@3 | ||
# "cypress-io/cypress@3" installs the latest published | ||
# version "s.x.y" of the orb. We recommend you then use | ||
# the strict explicit version "cypress-io/[email protected]" | ||
# to lock the version and prevent unexpected CI changes | ||
cypress: cypress-io/[email protected] | ||
|
||
jobs: | ||
cypress-run: | ||
executor: | ||
name: cypress/default | ||
node-version: "20.6.0" | ||
parallelism: 2 | ||
steps: | ||
- cypress/install | ||
- cypress/run-tests: | ||
cypress-command: "npx wait-on@latest http://localhost:3000 && npx cypress run --record --parallel" | ||
start-command: "npm run build && npm run start" | ||
|
||
workflows: | ||
build: | ||
jobs: | ||
- "cypress/run": | ||
start-command: "npm run start" | ||
- cypress-run |
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 @@ | ||
NEXT_PUBLIC_API_URL=https://sp-slidtodo-api.vercel.app/FESI3-5 |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
// describe("로그인 페이지 테스트", () => { | ||
// it("로그인 성공.", () => { | ||
// cy.intercept("/dashboard*").as("dashboard"); | ||
|
||
// cy.visit("http://localhost:3000/login"); | ||
|
||
// cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
// cy.get('input[placeholder="비밀번호"]').type("012345678"); | ||
// cy.contains("로그인").click(); | ||
|
||
// cy.wait("@dashboard").then((_) => { | ||
// cy.contains("대시보드"); | ||
// }); | ||
// }); | ||
// it.only("로그인 실패.", () => { | ||
// cy.visit("http://localhost:3000/login"); | ||
|
||
// cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
// cy.get('input[placeholder="비밀번호"]').type("wrongnumber"); | ||
// cy.contains("로그인").click(); | ||
|
||
// cy.wait("@dashboard").then(() => { | ||
// cy.contains("대시보드"); | ||
// }); | ||
// }); | ||
|
||
// it("로그인 실패.", () => { | ||
// cy.intercept("/login").as("login"); | ||
|
||
// cy.visit("http://localhost:3000/login"); | ||
|
||
// cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
// cy.get('input[placeholder="비밀번호"]').type("wrongnumber"); | ||
// cy.contains("로그인").click(); | ||
|
||
// cy.wait("@login").then(() => { | ||
// cy.contains("로그인에 실패했습니다. 다시 시도해 주세요.").should("be.visible"); | ||
// }); | ||
// }); | ||
// }); | ||
describe("로그인 페이지 테스트", () => { | ||
it("로그인 성공.", () => { | ||
cy.intercept("/dashboard*").as("dashboard"); | ||
|
||
cy.visit("http://localhost:3000/login"); | ||
|
||
cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
cy.get('input[placeholder="비밀번호"]').type("012345678"); | ||
cy.contains("로그인").click(); | ||
|
||
cy.wait("@dashboard").then(() => { | ||
cy.contains("대시보드"); | ||
}); | ||
}); | ||
// it.only("로그인 실패.", () => { | ||
// cy.visit("http://localhost:3000/login"); | ||
|
||
// cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
// cy.get('input[placeholder="비밀번호"]').type("wrongnumber"); | ||
// cy.contains("로그인").click(); | ||
|
||
// cy.wait("@dashboard").then(() => { | ||
// cy.contains("대시보드"); | ||
// }); | ||
// }); | ||
|
||
// it("로그인 실패.", () => { | ||
// cy.intercept("/login").as("login"); | ||
|
||
// cy.visit("http://localhost:3000/login"); | ||
|
||
// cy.get('input[placeholder="이메일"]').type("[email protected]"); | ||
// cy.get('input[placeholder="비밀번호"]').type("wrongnumber"); | ||
// cy.contains("로그인").click(); | ||
|
||
// cy.wait("@login").then(() => { | ||
// cy.contains("로그인에 실패했습니다. 다시 시도해 주세요.").should("be.visible"); | ||
// }); | ||
// }); | ||
}); |
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
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.