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

Getting unique validation error from cypress version 5.5.0,what ever the number we input the field validation saying number already exists #14670

Closed
venkatkasturi opened this issue Jan 21, 2021 · 6 comments

Comments

@venkatkasturi
Copy link

Getting unique validation error from cypress version 5.5.0, what ever the number we input the field validation saying number already exists, however no issues before cypress version 5.4.0, can anyone please help how to resolve the issue?

image

@bahmutov
Copy link
Contributor

bahmutov commented Jan 21, 2021 via email

@venkatkasturi
Copy link
Author

venkatkasturi commented Jan 21, 2021

I have tried in all the Cypress versions 5.5.0, 5.6.0, 6.0.0, 6.0.1, 6.1.0, 6.2.0, 6.2.1, 6.3.0 - not working
Versions before 5.4.0, working fine

Due to confidentiality agreement of the project could not be able to share the code

Scenario is to check unique validation for Sales Order field

 const todaysDate = Cypress.moment().format('MMDDYY')
  var x = 100;
  var rand = Math.floor(Math.random() * x) + 1; //Generate Random Number
cy.get("input[id*='input_orderNumber']").clear().type("SO"+todaysDate+rand)

Getting unique validation error message from cypress version 5.5.0, what ever the number we input the field validation saying number already exists, however no issues before cypress version 5.4.0

@bahmutov
Copy link
Contributor

bahmutov commented Jan 21, 2021 via email

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Jan 21, 2021
@jennifer-shehane
Copy link
Member

The only thing in 5.5.0 that I see that could be relevant is this change for Cypress to support beforeinput events. #8411 Does the application code rely on beforeinput events?

And as Gleb mentioned, we need the code or psuedo code around how the input verification works in order to track this down.

@venkatkasturi
Copy link
Author

Will take permissions from my Product Owner regarding the "html markup and the code snippet validating the input" and post it shortly..

@jennifer-shehane
Copy link
Member

Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen.

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Jun 15, 2021
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

No branches or pull requests

3 participants