Skip to content

Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range. #113

Closed
@iamyoki

Description

@iamyoki

Describe the bug
Here is my test:

it.only('test', () => {
    cy.matchImage();
  });

First run is okay, but not after then.
I think it's related to my chinese character filename.

Here is the error message:

Error:       InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
    at Context.eval (http://localhost:3000/__cypress/tests?p=cypress/support/e2e.js:256:76)
From previous event:
    at Context.thenFn (http://localhost:3000/__cypress/runner/cypress_runner.js:138969:63)
    at Context.then (http://localhost:3000/__cypress/runner/cypress_runner.js:139391:21)
    at wrapped (http://localhost:3000/__cypress/runner/cypress_runner.js:157145:19)
    at http://localhost:3000/__cypress/runner/cypress_runner.js:155901:15
From previous event:
    at CommandQueue.runCommand (http://localhost:3000/__cypress/runner/cypress_runner.js:155879:17)
    at next (http://localhost:3000/__cypress/runner/cypress_runner.js:156032:19)
    at http://localhost:3000/__cypress/runner/cypress_runner.js:156061:16

image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • OS and version: [e.g. Windows 10 build. 19043.1319]
  • Browser and version [e.g. chrome 22]
  • Cypress version [e.g. 8.6.0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions