Cypress check_anchor_links.js fails with syntax error
See original GitHub issueWhere to find the issue
https://github.com/corona-warn-app/cwa-website/blob/master/cypress/integration/check_anchor_links.js
Describe the issue
The Cypress test check_anchor_links.js fails with “Syntax error, unrecognized expression: #” in /de/blog entries and /en/blog entries
Execute:
npm run test:prepare
npm run test:open
click on check_anchor_links.js
in Cypress console to run test
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Error Messages | Cypress Documentation
This message means that Cypress was unable to find tests in the specified file. You'll likely get this message if you have an...
Read more >Cy.get('a[href="something"]' returns Syntax error ... - GitHub
I'm not getting this error with the test code you provided. Are you sure that you don't have any Cypress.Command.overwrite defined for the...
Read more >Cypress get href attribute - Stack Overflow
Since Cypress doesn't support multiple tabs, I want to get the href attribute of that link and then open it in the same...
Read more >Cypress Tips and Tricks - Gleb Bahmutov
js " by the way. Make JavaScript crashes useful #. As I have said before, the true value of a test is not...
Read more >Cypress - Code Like This
"Cypress can test anything that runs in a browser. ... tests are written in modern JavaScript so your testers need to understand callbacks,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue is resolved by PR #1996. Thank you to @brifemu!
On Mac OS X no problem Google Chrome Version 95.0.4638.69 (Official Build) (x86_64)
node -v v14.16.1
npm -v 6.14.12