Skip to content

Commit

Permalink
chore: cypress config 변경
Browse files Browse the repository at this point in the history
baseUrl, viewport 설정 추가
  • Loading branch information
geongyu09 committed Aug 28, 2024
1 parent 45bfcd8 commit ae7284f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions frontend/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: "http://localhost:3000",
viewportHeight: 1080,
viewportWidth: 1920,
setupNodeEvents(on, config) {
// implement node event listeners here
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/application.chapter.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("첫 번째 인적사항 입력 검증 테스트:", () => {
cy.clearAllSessionStorage();

cy.viewport(1920, 1080);
cy.visit("http://localhost:3000/application");
cy.visit("/application");

cy.get("label").contains("개발자").parent().as("occupation");
cy.contains("1순위").parent().as("firstChapter");
Expand Down
3 changes: 1 addition & 2 deletions frontend/cypress/e2e/application.motivation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ describe("참가자 지원 동기 질문 페이지 e2e 테스트", () => {
cy.clearLocalStorage();
cy.clearAllSessionStorage();

cy.viewport(1920, 1080);
cy.visit("http://localhost:3000/application");
cy.visit("/application");

// 희망 분야 페이지
cy.get("label").contains("개발자").parent().as("occupation");
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Cypress.Commands.add("checkAlert", (expectedValue: string) => {

Cypress.Commands.add("goSecondPersonalInformation", () => {
cy.clearAllLocalStorage();
cy.visit("http://localhost:3000/application");
cy.visit("/application");
cy.get("label").contains("개발자").should("exist").click();
cy.get("span")
.contains("1순위")
Expand Down

0 comments on commit ae7284f

Please sign in to comment.