Skip to content

Commit

Permalink
test: 에러 테스트 코드 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
shackstack committed Aug 18, 2023
1 parent 4a87e55 commit bd632bb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions frontend/cypress/e2e/restaurantListInteraction.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,30 @@ describe('음식점 리스트 상호작용 테스트', () => {
});
});
});

it('오류 테스트', () => {
const categories = [
'일식당',
'한식',
'와인',
'초밥,롤',
'생선회',
'양식',
'와인',
'육류,고기요리',
'이자카야',
'돼지고기구이',
'요리주점',
];

cy.visit(Cypress.config().baseUrl);
cy.wrap(categories).each((category: string) => {
cy.get(`[data-label='${category}']`).click();
cy.getByCy('음식점 카드')
.should('exist')
.each(restaurantCard => {
expect(restaurantCard.text()).to.include(category);
});
});
});
});

0 comments on commit bd632bb

Please sign in to comment.