Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sopa301 committed May 12, 2024
1 parent a79db9a commit 3e6ec16
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/cypress/config/blurbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ first blurb
<!--repo-->------------------------------------
https://gitlab.com/reposense/testrepo-gitlab/-/tree/main
unseen blurb
<!--repo-->------------------------------------
https://github.com/reposense/publish-RepoSense/tree/master
third blurb
<!--repo-->------------------------------------
https://github.com/reposense/RepoSense-auth-helper/tree/master
second blurb
10 changes: 9 additions & 1 deletion frontend/cypress/tests/chartView/chartView_blurbs.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 3e6ec16

Please sign in to comment.