1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-17 05:25:54 +02:00

test: fix with new anchor link behavior in blog posts

This commit is contained in:
Théo LUDWIG 2023-06-16 23:26:09 +02:00
parent 3b76195d71
commit d78e50638e
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ 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('.prose a').should('have.attr', 'target', '_blank')
cy.get('.prose a:visible').should('have.attr', 'target', '_blank')
})
it("should redirect to /404 if the blog post doesn't exist", () => {

View File

@ -21,9 +21,9 @@
"lint:prettier": "prettier . --check --ignore-path .gitignore",
"lint:staged": "lint-staged",
"test:unit": "cypress run --component",
"test:html-w3c-validator": "start-server-and-test start http://127.0.0.1:3000 html-w3c-validator",
"test:e2e": "start-server-and-test start http://127.0.0.1:3000 cypress run",
"test:dev": "start-server-and-test dev http://127.0.0.1:3000 cypress open",
"test:html-w3c-validator": "start-server-and-test \"start\" \"http://127.0.0.1:3000\" \"html-w3c-validator\"",
"test:e2e": "start-server-and-test \"start\" http://127.0.0.1:3000 \"cypress run\"",
"test:dev": "start-server-and-test \"dev\" \"http://127.0.0.1:3000\" \"cypress open\"",
"resume:build": "node ./jsonresume-theme-custom/build.js",
"release": "semantic-release",
"deploy": "vercel",