Skip to content

Conversation

@kuceb
Copy link
Contributor

@kuceb kuceb commented Jul 18, 2019

After discussion, we'll go ahead and keep this option but...

  • rename it to parseSpecialCharSequences
  • update the cy.type() error message that indicates an invalid sequence and point the user to this option
    image

close #4287
close #4744

Docs

@brian-mann
Copy link
Member

brian-mann commented Jul 23, 2019

After discussion, we'll go ahead and keep this option but...

  • rename it to parseSpecialCharSequences
  • update the cy.type() error message that indicates an invalid sequence and point the user to this option
  • update the docs for cy.type()

@brian-mann brian-mann closed this Jul 23, 2019
@kuceb kuceb reopened this Jul 23, 2019
@kuceb kuceb changed the title Revert "Add option to ignore special character sequences to cy.type (… rename cy.type disableSpecialCharSequences options Jul 23, 2019
@kuceb kuceb changed the title rename cy.type disableSpecialCharSequences options rename cy.type disableSpecialChars options Jul 23, 2019
@kuceb kuceb requested review from brian-mann and removed request for brian-mann, chrisbreiding and jennifer-shehane July 23, 2019 20:07
Copy link
Member

@brian-mann brian-mann left a comment

Choose a reason for hiding this comment

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

  • Can we say explicitly to "pass the option: { ... }" in the footer?
  • Can we add a link to the cy.type docs in the footer too? https://on.cypress.io/type

@jennifer-shehane
Copy link
Member

I feel a little bit like....am I missing something?

The default for parseSpecialCharacterSequences should be true and you set false to turn off parsing and type the literal characters. Yah?

I reversed all of the logic and booleans in this commit 159f1d0

@kuceb
Copy link
Contributor Author

kuceb commented Jul 24, 2019

@jennifer-shehane nice. good catch

@kuceb kuceb requested a review from brian-mann July 24, 2019 15:36
const allChars = _.keys(Keyboard.specialChars).concat(_.keys(Keyboard.modifierChars)).join(', ')

expect(err.message).to.eq(`Special character sequence: '{bar}' is not recognized. Available sequences are: ${allChars}`)
expect(err.message).to.eq(`Special character sequence: '{bar}' is not recognized. Available sequences are: ${allChars}
Copy link
Member

Choose a reason for hiding this comment

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

Approving this PR but this would be a good place to introduce template tags using the common-tags module.

@brian-mann brian-mann merged commit 50a285a into develop Jul 24, 2019
@emilyrohrbough emilyrohrbough deleted the revert-4744-disableSpecialChars branch August 1, 2024 13:45
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.

Allow to ignore special character sequences for cy.type

4 participants