agent-js-cypress icon indicating copy to clipboard operation
agent-js-cypress copied to clipboard

cy.screenshot() or automatic screenshots on fail don't load images to RP when test name contains coma or single quote

Open chaoticsparks opened this issue 4 years ago • 1 comments

To reproduce just add a spec file to this example with the following content:

context('screen', () => {
    it('test case title with ,', () => {
        cy.screenshot(); // or without that command
        expect(true).to.be.false;
    });

    it('test case title with \'', () => {
        cy.screenshot(); // or without that command
        expect(true).to.be.false;
    });
});

I tried to change the screenshot name in after:screenshot hook but it didn't work :(

chaoticsparks avatar Dec 21 '20 16:12 chaoticsparks

Hello @chaoticsparks ! The screenshot mechanism has been completely rewritten and released in version 5.1.2. Have you tried using it? Please check your issue with the latest agent version. Looking forward to your feedback!

AmsterGet avatar Jul 26 '24 16:07 AmsterGet

I'll close this issue. Feel free to reopen it if your request is still relevant.

AmsterGet avatar Aug 08 '24 15:08 AmsterGet