cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.71k stars 3.16k forks source link

hyphens: auto does not work during cypress tests in chrome/electron #19670

Open awaigand opened 2 years ago

awaigand commented 2 years ago

Current behavior

When testing a page, that has the language declared as "de" (html lang="de") and elements have hyphens:auto, long strings should break according to specific language rules using hyphens. This does not happen in Chrome and Chromium in Cypress However, opening the same page in chrome or chromium outside of cypress, it works. It also works using Firefox inside of Cypress.

This is an example with the German word "Auftragsbekanntmachung" (declaration of orders). Chrome image

Same site, same Chrome, just outside of Cypress image

Firefox inside of Cypress. this works image

This happens on Linux (Kubuntu 20.04) and Windows 10. It also happens with electron.

Desired behavior

The string should break according to language rules, even inside of Cypress.

Test code to reproduce

Cypress Version

9.2.1

Other

Thank you for your great work and support!

Some more Details: Chrome Version: 97 (most recent) Firefox: Most Recent Tested On: Windows 10, Kubuntu 20.04

I also added an "iframe-test.html", since I thought it might be something generic with iframes, but it also worked there outside of Cypress.

cypress-app-bot commented 1 year ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

cypress-app-bot commented 1 year ago

This issue has been closed due to inactivity.

RazielleS commented 6 months ago

I still experience this issue. Can we open this again?

jennifer-shehane commented 6 months ago

I ran the example in Cypress 13.7.0 and no longer see this issue in Chrome or Electron.

@RazielleS Could you provide an example that doesn't work with our latest version?

Screenshot 2024-03-14 at 11 58 52 AM

cypress-app-bot commented 1 week ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.