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:
@ -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')
|
||||
})
|
||||
|
||||
|
@ -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')
|
||||
|
Reference in New Issue
Block a user