You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But cypress runner seems not to be taking it into account:
My test are failing because of this.
On the other hand, when testing it on chrome (Version 72.0.3626.121 Official Build 32-bit running on windows 10) or firefox (65.0.2 64bits) it works ok:
Desired behavior:
Cypress runner should correctly handle windows-1252 encoding like chrome and firefox do.
Steps to reproduce: (app code and test code)
This is a minimal example I built:
<html><head><metahttp-equiv="Content-Type" content="text/html"><metacharset="windows-1252"></head><body><h1>Character encoding failing test: á é í ó ú ñ</h1></body>
While on chrome:
Versions
cypress version:
"devDependencies": {
"cypress": "^3.2.0"
}
os: Microsoft Windows 10 Home, Version 10.0.17134 Build 17134
works ok on:
chrome (Version 72.0.3626.121 Official Build 32-bit running on windows 10)
firefox (65.0.2 64bits)
update: this is the best workaound I could find so far, if anybody has a better alternative I'd be grateful
describe('playing with regular expressions',()=>{it.only('should match by regular expression',()=>{cy.visit('http://localhost/metaSSC/cypress/regexp.html')cy.get('div.flash_warning span').should('have.text','El registro no ha podido ser dado de alta.')cy.get('div.flash_error span').contains(/^El c.digo de la aplicacion no puede estar vac.o\.$/)// match span text by regexp})})
Current behavior:
I'm testing a page encoded with windows-1252 like this:
But cypress runner seems not to be taking it into account:
My test are failing because of this.
On the other hand, when testing it on chrome (Version 72.0.3626.121 Official Build 32-bit running on windows 10) or firefox (65.0.2 64bits) it works ok:
Desired behavior:
Cypress runner should correctly handle windows-1252 encoding like chrome and firefox do.
Steps to reproduce: (app code and test code)
This is a minimal example I built:
While on chrome:
Versions
cypress version:
os: Microsoft Windows 10 Home, Version 10.0.17134 Build 17134
works ok on:
chrome (Version 72.0.3626.121 Official Build 32-bit running on windows 10)
firefox (65.0.2 64bits)
Also asked at SO
The text was updated successfully, but these errors were encountered: