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

BUG: Non-existing date values, entered manually, are not validated negatively on Profile information page #327

Open
Olena-Olenka opened this issue Mar 7, 2024 · 3 comments
Assignees
Labels
BUG Something isn't working FRONTEND Fronted feature

Comments

@Olena-Olenka
Copy link
Collaborator

Describe your issue

Non-existing date values are not validated negatively in Date of birth field on Profile information page and Null value is actually saved. Thus user is not prevented from format confusing, e.g. when entering 07/23/1980 for 23 of July

Steps to reproduce

  1. Open https://live-in-motion-everyday.com/sign-in, login with valid credentials.
  2. Navigate to Personal information page, clicking on gear icon in header, open DevTools.
  3. Enter manually non-existing date of birth, e.g. 07/23/1980
  4. Click on Save
  5. Check response body using Network tab in DevTools

What was the actual result?

Form is saved with non-existing date value without displaying error message, but actually in database Null value is saved for dateOfBirth

What was the expected result?

User is prevented from saving non-existing dates - such date is negatively validated and error message is displayed

Put here any screenshots or videos (optional)

inexisting.date.mp4

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Severity

Minor (S4)

@Olena-Olenka Olena-Olenka added the BUG Something isn't working label Mar 7, 2024
@Olena-Olenka Olena-Olenka self-assigned this Mar 7, 2024
@valery-chumak valery-chumak self-assigned this Mar 7, 2024
@valery-chumak
Copy link
Collaborator

Will be closed via #322

@nikita-remeslov
Copy link
Collaborator

@valery-chumak Link PR pls

@nikita-remeslov nikita-remeslov added the FRONTEND Fronted feature label Mar 8, 2024
@Olena-Olenka
Copy link
Collaborator Author

Retested, verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working FRONTEND Fronted feature
Projects
None yet
Development

No branches or pull requests

3 participants