ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[Create Event] Uninformative error message for incorrect value in Event date field #7044

Open yulianagoncharenko opened 6 months ago

yulianagoncharenko commented 6 months ago

Environment: Windows 10 Pro for Workstations, Google Chrome: 123.0.6312.86 (64 bit) Reproducible: always Build found: 02/Apr/24

Preconditions

  1. Go to https://www.greencity.social/#/greenCity
  2. Log in as authorised user

Steps to reproduce

  1. Go to https://www.greencity.social/#/events/create-event
  2. Sign in as an authorised user
  3. Fill in some data into 'Date' field in an inappropriate format, e.g. 24/11/2024

Actual result Date field is highlighted in red, with 'Choose a date" remark.

Expected result Error message highlighted in red like this should appear “Enter data in date format "mm/dd/yyyy"".

User story and test case links E.g.: "User story #4231 Test case" CreateEventDateError_expected Create Event Date error_actual

Mikusja commented 1 day ago
  1. [The latest change request about formatting date] (https://github.com/ita-social-projects/GreenCity/issues/7470)
  2. The date is formatted incorrect Image
  3. The box is highlighted in red but the message under is incorrect Image
  4. If the date field is empty the message under is incorrect too Image