mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
chore: maintenance
This commit is contained in:
@ -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')
|
||||
})
|
||||
|
||||
|
@ -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', () => {
|
||||
|
Reference in New Issue
Block a user