mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Homepage test to render content
This commit is contained in:
parent
751edb863a
commit
50f5ffefd9
1 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import data from '../../config/data';
|
||||
|
||||
describe('Home', () => {
|
||||
before(() => {
|
||||
cy.visit('/');
|
||||
|
|
@ -23,4 +25,11 @@ describe('Home', () => {
|
|||
'be.visible'
|
||||
);
|
||||
});
|
||||
|
||||
it('should render content', () => {
|
||||
const dataKeys = Object.keys(data);
|
||||
dataKeys.map(key => {
|
||||
cy.contains(data[key].title);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue