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

simulated type fixes #4870

Merged
merged 137 commits into from Oct 23, 2019
Merged

simulated type fixes #4870

merged 137 commits into from Oct 23, 2019

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented Jul 30, 2019

Tasks

UX Changes:

error message on not typeable element

  • before:
  • after:
    19-10-18_17:52::12

error message on not clearable element

  • before:
  • after:
    image

type follows focus

Pre-merge Tasks

  • Have tests been added/updated for the changes in this PR?
  • Has the original issue been tagged with a release in ZenHub?

@cypress
Copy link

cypress bot commented Jul 30, 2019



Test summary

410 0 0 0


Run details

Project cypress
Status Passed
Commit 9dda4ce
Started Sep 5, 2019 3:02 PM
Ended Sep 5, 2019 3:05 PM
Duration 02:59 💡
OS Linux Debian - 8.10
Browser Electron 61

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

packages/driver/src/cy/commands/actions/type.js Outdated Show resolved Hide resolved
packages/driver/src/cy/keyboard.ts Outdated Show resolved Hide resolved
packages/driver/src/cy/keyboard.ts Outdated Show resolved Hide resolved
packages/driver/src/cy/keyboard.ts Show resolved Hide resolved
packages/driver/src/cy/keyboard.ts Outdated Show resolved Hide resolved
@@ -2822,6 +3018,10 @@ describe('src/cy/commands/actions/type', () => {
expect($input).to.have.value('FoO')
})
})

it('{shift} does not capitalize characters', () => {
cy.get('input:first').type('{shift}foo').should('have.value', 'foo')
Copy link
Member

Choose a reason for hiding this comment

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

likely need a note here to describe our implementation logic of why we consider this to be correct

cy
.get(':text:first').type(val)
.should('have.value', val)
describe('naughtly strings', () => {
Copy link
Member

Choose a reason for hiding this comment

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

naughtly lol

return chars
})
}
throw Error(`Not a valid key: ${key}`)
Copy link
Member

Choose a reason for hiding this comment

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

i'm not sure this error can ever be hit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It cannot

packages/driver/src/cy/keyboard.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants