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

feat: usage of VSCode Dark+ syntax highlighting in posts

This commit is contained in:
Divlo
2022-02-23 00:38:50 +01:00
parent 0e0036b737
commit a467ea7aff
11 changed files with 380 additions and 187 deletions

View File

@ -3,7 +3,6 @@ describe('Page /blog/[slug]', () => {
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/10/2021')
cy.get('.prose a').should('have.attr', 'target', '_blank')
})

View File

@ -10,15 +10,11 @@ describe('Page /blog', () => {
'have.text',
'First post of the blog, introduction and explanation of how this blog is made.'
)
cy.get('[data-cy=blog-posts] [data-cy=blog-post-date]')
.last()
.should('have.text', '06/10/2021')
})
it('should redirect the user to the right blog post', () => {
cy.visit('/blog')
cy.get('[data-cy=blog-posts]')
.last()
cy.get('[data-cy=hello-world]')
.click()
.location('pathname')
.should('eq', '/blog/hello-world')