Skip to content

Commit

Permalink
Edit tests to use markdown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sopa301 committed May 12, 2024
1 parent 0e76fe4 commit a96eed5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/config/blurbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ https://gitlab.com/reposense/testrepo-gitlab/-/tree/main
unseen blurb
<!--repo-->------------------------------------
https://github.com/reposense/publish-RepoSense/tree/master
third blurb
## third blurb in h2 markdown tag
<!--repo-->------------------------------------
https://github.com/reposense/RepoSense-auth-helper/tree/master
second blurb
<h1>second blurb in h1 tag</h1>
14 changes: 14 additions & 0 deletions frontend/cypress/tests/chartView/chartView_blurbs.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,18 @@ describe('blurbs', () => {
cy.get('.markdown.blurb')
.should('have.length', 3);
});

it('processes markdown in blurbs', () => {
cy.get('.markdown.blurb')
.eq(1)
.find('h1')
.contains('second blurb in h1 tag');
});

it('processes html in blurbs', () => {
cy.get('.markdown.blurb')
.eq(2)
.find('h2')
.contains('third blurb in h2 markdown tag');
});
});

0 comments on commit a96eed5

Please sign in to comment.