Skip to content
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

Add {Shift} and {leftarrow} supported. #6200

Closed
disappearedgod opened this issue Jan 21, 2020 · 2 comments
Closed

Add {Shift} and {leftarrow} supported. #6200

disappearedgod opened this issue Jan 21, 2020 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@disappearedgod
Copy link

disappearedgod commented Jan 21, 2020

Current behavior:

I get a input and type a string(like 'ava') and want to select the last char with Shift + leftarraow from the cursor.

But I sees leftarraow would work without Shift. The cursor moves after 'v', like 'av | a'

Desired behavior:

I want to select the last char with typing Shift + leftarraow

Test code to reproduce

cy.get('#ID').find('input[type=text]').eq(0)
.type('ava')
.type('{Shift}{leftarrow}', {release : false})

Versions

cypress :5.0.2
macOS :10.15.2
Chrome

@disappearedgod
Copy link
Author

Screen Shot 2020-01-21 at 2 54 47 PM

@jennifer-shehane
Copy link
Member

Cypress' API does not fully support text selection at the moment. Closing as duplicate of #2839 which does detail a workaround for simulating test selection here: #2839 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants