Skip to content

Option "contains" don't work if the file not exist (randomBytes method not found) #92

@RachelDSS

Description

@RachelDSS

Hello,
Thanks for this project !

I have a question, I would check if a file was download and start by a prefix.
But I need to use a timeout too.

So I combinated options like this :

cy.verifyDownload(prefix, { contains: true, timeout: 20*1000, interval: 500 });

And it not work. The contains option work, but if the file don't exist, the timeout was ignore, because the method :

const getTempName = () => ${randomBytes(8)}-temp-file-name-${randomBytes(8)};

Was in error :
image

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions