Add files via upload

This commit is contained in:
Gorri
2022-11-02 17:48:47 +01:00
committed by GitHub
parent f5af86908c
commit 6802467dcc
99 changed files with 7730 additions and 0 deletions
@@ -0,0 +1,11 @@
describe('Generic Page', () => {
before(() => {
cy.visit('http://localhost:1313/generic-page');
});
it('displays title', () => {
cy.get('h1')
.contains('Generic Page');
});
});
@@ -0,0 +1,12 @@
describe('Home', () => {
before(() => {
cy.visit('http://localhost:1313/');
});
it('displays title', () => {
cy.get('h1')
.contains('This is')
.contains('Massively');
});
});
@@ -0,0 +1,20 @@
const post = {
date: 'March 29, 2022',
slug: 'lorem-ipsum',
title: 'Lorem Ipsum',
}
describe('Post', () => {
before(() => {
cy.visit(`http://localhost:1313/post/${post.slug}`);
});
it('displays date', () => {
cy.get('.date').contains(post.date);
})
it('displays title', () => {
cy.get('h1')
.contains(post.title);
});
});