question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress check_anchor_links.js fails with syntax error

See original GitHub issue

Where 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

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
MikeMcC399commented, Nov 3, 2021

This issue is resolved by PR #1996. Thank you to @brifemu!

1reaction
dsarkarcommented, Oct 29, 2021

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

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found