-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selectall / unselect regressions in 3.5.0, 3.6 #5622
selectall / unselect regressions in 3.5.0, 3.6 #5622
Comments
Thanks @znarf , I inadvertently introduced a breaking change with The problem is the I now realize that this breaks a lot of tests, since users might not write the I'll open up a PR to revert to pre |
The code for this is done in cypress-io/cypress#5637, but has yet to be released. |
Released in |
@bkucera It's still failing but the behavior is different. CI run: https://circleci.com/gh/opencollective/opencollective-frontend/55853
Looks like |
apologies @znarf, Would you happen to know if you're using It would help if you could screenshot the |
Hi @bkucera, I'm working with @znarf on Open Collective. We don't Here's a screenshot of the logs in console:
I've been able to make it work on 3.6.1 by splitting in multiple cy.get('[data-cy="HTMLEditor"] .ql-editor').type('Hello');
cy.get('[data-cy="HTMLEditor"] .ql-editor').type('{selectall}');
cy.get('[data-cy="HTMLEditor"] .ql-editor').type('{ctrl}B');
cy.get('[data-cy="HTMLEditor"] .ql-editor').type('{rightarrow}');
cy.get('[data-cy="HTMLEditor"] .ql-editor').type('{ctrl}B');
cy.get('[data-cy="HTMLEditor"] .ql-editor').type(' world!'); |
@Betree so in We should probably implement a way to type one modifier key combination + release without having to break up into multiple type commands, something like: |
|
The code for this is done in cypress-io/cypress#5696, but has yet to be released. |
Released in |
Some regressions were introduced in 3.5 in
type()
behavior when interacting with selection (selectall / unselect).Current behavior:
The issue happens in a rich text editor where we are making a text bold by triggering:
{selectall}
to select the typed text{ctrl}B
one time to start{ctrl}B
a second time to stopIt seems:
{rightarrow}
.{ctrl}
is ignored, onlyB
is triggeredSteps to reproduce: (app code and test code)
In a rich text editor supporting this command.
Hello{selectall}{ctrl}B{rightarrow}{ctrl}B world!
Work in progress, currently trying to generate a minimum reproduction.
Sources
Versions
Introduced in Cypress 3.5, still happening in 3.6. Linux / Mac OS.
The text was updated successfully, but these errors were encountered: