diff --git a/cypress/test/CaseStudyCard.cy.js b/cypress/test/CaseStudyCard.cy.js index cff7eebb03a..da7375e6107 100644 --- a/cypress/test/CaseStudyCard.cy.js +++ b/cypress/test/CaseStudyCard.cy.js @@ -7,7 +7,7 @@ describe('CaseStudyCard Component', () => { it('renders the CaseStudyCard component with study data', () => { mount(); - cy.get('[data-testid="CaseStudyCard-main"]').should('have.length', 1); + cy.get('[data-testid="CaseStudyCard-main"]').should('have.length', CaseStudiesList.length); CaseStudiesList.forEach((study, index) => { cy.get(`.rounded-md:eq(${index}) img`).should('have.attr', 'src', study.company.logo);