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

[UBS-User. Edit Profile] The 'Save changes' button is enabled when the User entered data manually #6120

Closed KaterinaUrizko closed 1 year ago

KaterinaUrizko commented 1 year ago

Environment: Windows 11 Home Chrome 114.0.5735.91 (Official buid) (64-bit). Reproducible: always. Build found:

When User changes the existing address data in the fields: Region, City, Street it is possible to enter the data manually and the “Save changes” button becomes enabled. If you click on the “Save changes” button, the notification that changes are saved appears. The last changed data is displayed on the ‘User Data’ page. After the page refreshing the old data, which was before editing, is displayed.

Preconditions

  1. The User is authorized and logged in the site https://www.greencity.social/#/ubs;
  2. 'User Data' page is opened.
  3. User has at least one saved Address in profile

Steps to reproduce

  1. Click on 'Edit data' button
  2. Earase the data of the 'Street' text field of Address 1
  3. Enter manually new data (e.g. TestTest)

Actual result The 'Save changes' button is enabled. When you click on it, the notification 'Your changes have been saved' appeares, and User is redirected to the 'User Data' page. The new street name is displayed in the 'Street' textfield (e.g. TestTest). After refreshing of the page the previous name of the street is displayed in the 'Street' textfield.

Expected result The ‘Save changes’ button is enabled only if User selects data from the drop-down list. Applies to data pulled via API (Region, city, street, house numbers, district) The field with manually entered data is highlighted in red, the label "Select from list" appears

User story and test case links "User story #3811 Test case"

StreetTest StreetTest1

_After refreshing_previously saved data is displayed

StreetTest2

Labels to be added "Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

Maksym8Kravchenko commented 1 year ago

This bug is fixed