Welcome to mirror list, hosted at ThFree Co, Russian Federation.

post.test.ts « integration « cypress - github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afa27ae8bc4e284e93cb92b5a2569dc9fff4fe86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
  });
});