Weird error after initial setup
See original GitHub issuecy.readFile() must be passed a non-empty string as its 1st argument. You passed: 146.Learn more
This happens after finishing setup and trying to run a sample test.
This is in my command that I use to login:
.then((url) => {
cy.intercept('api/users/user/profile/').as('login');
cy.visit(url);
cy.wait('@login');
cy.injectAxe();
}),
Error happens on the cy.injectAxe()
line.
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Weird error message when setting up a new 3CX instance
I had setup a cheap 10$ server with a free 3CX license and tested for a couple of months. My company is now...
Read more >Getting A Weird Error Message From Context Menu...
7. Click on the Startup Tab and click open task manager. This will open another window which contains all your startup applications on...
Read more >If your computer beeps and fails to boot - IU KB
If problems are found while booting, you can usually diagnose them using the error codes displayed on the screen.
Read more >Weird Error when setting up my first projetct - Get Help
Hi guys, I am getting weird errors when following the quick start guide. On my PC I'm getting this: npx: installed 125 in...
Read more >weird installation database error - WordPress.org
But now I have this weird database connection problem trying to install ... to my setup, as this is all on my home...
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 Free
Top 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
I was able to work around this by creating my own
injectAxe
method in my tests.Then instead of calling
cy.injectAxe()
, I call my own method to inject the script.Yes, this issue still exists with the latest version, we tried calling our own method to inject the script.
const injectAxe = () => {
cy.readFile(‘…/…/node_modules/axe-core/axe.min.js’).then((source) => { return cy.window({ log: false }).then((window) => { window.eval(source); }); }); };