-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Cannot read property \'replace\' of null' from sanitize-filename err being thrown #4310
Comments
@amirdhaoui There are a couple of places where
Could you paste some more of the DEBUG log? Do you have any other configuration set up? Anything in your Also, what it the directory of your project? Does it or any of your test names have any strange characters in it? Maybe foreign chars or special chars? |
I was able to recreate this by defining a I doubt this is the exact use case someone would have, likely they may be doing a for/each loop through an array or obj to auto generate test titles that ends up defining the title as it(null, () => {
expect(true).to.be.false
}) it(undefined, () => {
expect(true).to.be.false
}) This is due to our calling sanitize on the test titles while generating the screenshot (taken during failure automatically) This error also only occurs during |
I have a PR open that should fix this. #4317 |
Below you find the whole cypress log. hope it helps.
|
Then I changed the code and I used a static test title.
|
@amirdhaoui This most recent error is different from the one you posted earlier. This error is being thrown from within your application code.
|
@jennifer-shehane I think yes the problem is from the application it takes too long to load and cypress doesn't wait until it loads all files so it returns fail in some cases. A solution could be to use a higher Timeout variable in cypress maybe it resolves the prob. |
The code for this is done in cypress-io/cypress#4317, but has yet to be released. |
Released in |
We are using Docker containers to run multiple test cases in parallel. Each container run a single test. we are launching multiple test cases together to test the same application located in another server. When I launch a single test it passes. Problems start when I run the same test 4 or 5 tests in parallel. Some of them pass the others fail.
The test is simple it enters the login and password in the login webpage and clicks "connect" and wait for the home page.
I read the access log of the server and I found that the number of requests is not the same for each client ! I found that weird because I waited for the same behaviour from the web server.
I extracted the cypress Debug logs and I found that the failed clients have this error:
I tried to run those tests not in containers they passed.
I couldn't understand the source of the problem, eather the cypress test or the application itself.
Any help will be appreciated.
The text was updated successfully, but these errors were encountered: