Skip to content

Commit

Permalink
Update cypress/test/CaseStudyCard.cy.js
Browse files Browse the repository at this point in the history
Co-authored-by: Akshat Nema <[email protected]>
  • Loading branch information
reachaadrika and akshatnema authored Aug 16, 2023
1 parent 87601bd commit 7e975cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/test/CaseStudyCard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('CaseStudyCard Component', () => {
it('renders the CaseStudyCard component with study data', () => {
mount(<CaseStudyCard studies={CaseStudiesList} />);

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);
Expand Down

0 comments on commit 7e975cf

Please sign in to comment.