Skip to content
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

Tests with a too long description leads to ENOENT error #2665

Closed
Konstruktour opened this issue Oct 26, 2018 · 1 comment
Closed

Tests with a too long description leads to ENOENT error #2665

Konstruktour opened this issue Oct 26, 2018 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@Konstruktour
Copy link

Current behavior:

Tests with a too long description leads to an error message because cypress has problems saving screenshots (because filename of screenshot is based on the description).

1) describe 1 it has a looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong description:
     Error: ENOENT: no such file or directory, open 'C:\dev\cypress\reports\screenshots\playground\playground.ts\describe 1 -- it has a looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong description (failed).png'
  

Desired behavior:

The filename of the screenshot should be shortened when the description is too long.
An option in the configs to turn off screenshots would also help.

Steps to reproduce:

describe('describe', () => {
    it('it has a looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong description!', () => {
        expect(false).to.be.true;
    });
});

Versions

Cypress 3.1.0
Windows 10
Jenkins

@jennifer-shehane
Copy link
Member

Duplicate of #2403

@jennifer-shehane jennifer-shehane marked this as a duplicate of #2403 Oct 26, 2018
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants