Skip to content

Commit

Permalink
test: apply more test at resumt header
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesungoh committed Jul 13, 2022
1 parent 5e12d6b commit bd33b9b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apps/resume/cypress/e2e/root/header.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { data as headerData } from '../../../_content/Header';

describe('root - header', () => {
it('should display level 1 heading at header', () => {
cy.visit('/');
cy.get('header').find('h1').should('be.visible');
});

it('should render header data at level 1 heading where inside of header', () => {
cy.get('header').find('h1').contains(headerData.heading);
});

it('should display image at header', () => {
cy.get('header').find('img').should('be.visible');
});

it('should display headerData description at header', () => {
cy.get('header').find('p').should('be.visible');
});
});

0 comments on commit bd33b9b

Please sign in to comment.