1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

chore: maintenance

This commit is contained in:
Divlo
2021-12-04 15:52:51 +01:00
parent e5f4615f7f
commit 729e540d04
69 changed files with 10182 additions and 18460 deletions

View File

@ -2,8 +2,8 @@ describe('Page /blog/[slug]', () => {
it('should displays the first blog post (`hello-world`)', () => {
cy.visit('/blog/hello-world')
cy.get('[data-cy=language-flag-text]').should('not.exist')
cy.get('h1').should('have.text', 'Hello, world! 👋')
cy.get('[data-cy=blog-post-date]').should('have.text', '06/11/2021')
cy.get('h1').should('have.text', '👋 Hello, world!')
cy.get('[data-cy=blog-post-date]').should('have.text', '06/10/2021')
cy.get('.prose a').should('have.attr', 'target', '_blank')
})

View File

@ -3,7 +3,7 @@ describe('Page /blog', () => {
cy.visit('/blog')
cy.get('[data-cy=blog-posts] [data-cy=blog-post-title]')
.last()
.should('have.text', 'Hello, world! 👋')
.should('have.text', '👋 Hello, world!')
cy.get('[data-cy=blog-posts] [data-cy=blog-post-description]')
.last()
.should(
@ -12,7 +12,7 @@ describe('Page /blog', () => {
)
cy.get('[data-cy=blog-posts] [data-cy=blog-post-date]')
.last()
.should('have.text', '06/11/2021')
.should('have.text', '06/10/2021')
})
it('should redirect the user to the right blog post', () => {