diff --git a/frontend/cypress/e2e/restaurantListInteraction.cy.ts b/frontend/cypress/e2e/restaurantListInteraction.cy.ts index 22c6541d6..d5f9c8f5b 100644 --- a/frontend/cypress/e2e/restaurantListInteraction.cy.ts +++ b/frontend/cypress/e2e/restaurantListInteraction.cy.ts @@ -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); + }); + }); + }); });