Skip to content

[Bug] attachFile does not work with xml encoded files #209

@eduardovostrofischer

Description

@eduardovostrofischer

Currently trying to upload xml file but i can't make it work.

Code:

cy.contains('invoice').attachFile({filePath:'invoice.xml', encoding: 'xml'});

Current behavior:

"file encoding" is not valid.
Please look into docs to find supported "encoding" values

Desired behavior:

Sucessfully upload file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions