From 3e6ec16bf08334185fa77d1da2653e0a74252f18 Mon Sep 17 00:00:00 2001 From: sopa301 <96387349+sopa301@users.noreply.github.com> Date: Sun, 12 May 2024 13:49:17 +0800 Subject: [PATCH] Update tests --- frontend/cypress/config/blurbs.md | 6 ++++++ .../cypress/tests/chartView/chartView_blurbs.cy.js | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/cypress/config/blurbs.md b/frontend/cypress/config/blurbs.md index 9377ea8881..09a39410b4 100644 --- a/frontend/cypress/config/blurbs.md +++ b/frontend/cypress/config/blurbs.md @@ -3,3 +3,9 @@ first blurb ------------------------------------ https://gitlab.com/reposense/testrepo-gitlab/-/tree/main unseen blurb +------------------------------------ +https://github.com/reposense/publish-RepoSense/tree/master +third blurb +------------------------------------ +https://github.com/reposense/RepoSense-auth-helper/tree/master +second blurb diff --git a/frontend/cypress/tests/chartView/chartView_blurbs.cy.js b/frontend/cypress/tests/chartView/chartView_blurbs.cy.js index eb8cd176cd..6b30db1a06 100644 --- a/frontend/cypress/tests/chartView/chartView_blurbs.cy.js +++ b/frontend/cypress/tests/chartView/chartView_blurbs.cy.js @@ -3,10 +3,18 @@ describe('blurbs', () => { cy.get('.markdown.blurb') .first() .should('contain', 'first blurb'); + + cy.get('.markdown.blurb') + .eq(1) + .should('contain', 'second blurb'); + + cy.get('.markdown.blurb') + .eq(2) + .should('contain', 'third blurb'); }); it('has the correct number of valid blurbs', () => { cy.get('.markdown.blurb') - .should('have.length', 1); + .should('have.length', 3); }); });