Skip to content

Commit

Permalink
test: 2023년 -> 2024년 변경으로 인한 테스트코드 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dladncks1217 committed Jan 11, 2024
1 parent 7d24bc3 commit 8d9be53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/cypress/e2e/createTrip.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ describe('여행 생성 페이지', () => {

const currentMonth = String(new Date().getMonth() + 1).padStart(2, '0');

cy.get(`span[aria-label="2023년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2023년 ${currentMonth}월 12일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 12일"]`).click();

cy.get('#date').click();

cy.get('#date').should('have.value', `2023.${currentMonth}.01 - 2023.${currentMonth}.12`);
cy.get('#date').should('have.value', `2024.${currentMonth}.01 - 2024.${currentMonth}.12`);
});

it('도시와 기간이 채워졌을 때만 기록하기 버튼을 누를 수 있다.', () => {
Expand All @@ -65,8 +65,8 @@ describe('여행 생성 페이지', () => {

const currentMonth = String(new Date().getMonth() + 1).padStart(2, '0');

cy.get(`span[aria-label="2023년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2023년 ${currentMonth}월 12일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 12일"]`).click();

cy.get('#date').click();

Expand All @@ -86,8 +86,8 @@ describe('여행 생성 페이지', () => {

const currentMonth = String(new Date().getMonth() + 1).padStart(2, '0');

cy.get(`span[aria-label="2023년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2023년 ${currentMonth}월 12일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 1일"]`).click();
cy.get(`span[aria-label="2024년 ${currentMonth}월 12일"]`).click();

cy.get('#date').click();

Expand Down

0 comments on commit 8d9be53

Please sign in to comment.