From bd632bbb9c26b87e19c966b5e030b3e304a2337e Mon Sep 17 00:00:00 2001 From: Jeremy <102432453+shackstack@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:09:18 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=EC=97=90=EB=9F=AC=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../e2e/restaurantListInteraction.cy.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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); + }); + }); + }); });