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

#3845 Attempt to add insert, page up and page down keys #3892

Merged
merged 7 commits into from
Apr 10, 2019
Merged

#3845 Attempt to add insert, page up and page down keys #3892

merged 7 commits into from
Apr 10, 2019

Conversation

clarmso
Copy link
Contributor

@clarmso clarmso commented Apr 5, 2019

Here is my attempt to add the support for the insert, page up and page down keys. I've used the PR for #3071 as a guide.

Please feel free to comment on this PR. I think that these keys behave in a similar way as the escape key: They don't change the input or the cursor's location.

Close #3845.

@CLAassistant
Copy link

CLAassistant commented Apr 5, 2019

CLA assistant check
All committers have signed the CLA.

@jennifer-shehane jennifer-shehane requested a review from kuceb April 8, 2019 06:18
@jennifer-shehane
Copy link
Member

We'll want to open a PR for the documentation to add these to the special chars table upon release. https://github.com/cypress-io/cypress-documentation/blob/develop/source/api/commands/type.md

kuceb
kuceb previously requested changes Apr 8, 2019
packages/driver/src/cypress/keyboard.coffee Outdated Show resolved Hide resolved
@clarmso
Copy link
Contributor Author

clarmso commented Apr 9, 2019

@jennifer-shehane I have created a PR on cypress-documentation for these 3 new keys.
cypress-io/cypress-documentation#1567

@jennifer-shehane jennifer-shehane self-requested a review April 10, 2019 05:40
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to comments made

@jennifer-shehane jennifer-shehane dismissed kuceb’s stale review April 10, 2019 06:24

Comment was addressed

@jennifer-shehane jennifer-shehane merged commit 6e5ff7d into cypress-io:develop Apr 10, 2019
@brian-mann
Copy link
Member

@jennifer-shehane is saying that the browser respects the default behavior of pageup + pagedown which is hard to believe... but regardless there should be a test ensuring that this is correctly happening.

laurinenas pushed a commit to laurinenas/cypress that referenced this pull request Apr 28, 2019
…press-io#3892)

* Attempt to add insert, page up and page down keys.

* Fix keyboard event for page down. Fix tests' titles.

* Fix the pagedown test.

* Fix comment for the insert key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cy.type('{insert}') is not supported
5 participants