ita-social-projects / Car-Back-End

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Edit the Ride] Incorrect saving of data into DB about the number of passengers when the 'Ride Type' is changed

chelaak opened this issue · comments

Environment: Android 11, Nexus 5X.
Reproducible: always.
Build found: v1.0.545
Preconditions:

  1. Log in to the app;
  2. Create a ride (e.g. Naukova street, Lviv,-Shevchenka street, Lviv 15.11, 23:33,);
  3. Choose from the 'Ride Type' - 'TAXI';
  4. Leave the number of passengers by default (3);
  5. Open the main page.

Steps to reproduce

  1. Go to previously created ride
  2. Click on the ellipses menu
  3. Click 'Edit Ride details'
  4. Change the 'Ride Type' on 'OWN CAR'
  5. Leave the number of passengers by default (3).
  6. Click on the 'APPLY CHANGES' button.

Actual result:
On the page 'Edit the Ride' after changing the 'Ride Type' from 'TAXI' to 'OWN CAR' the number of passengers remained unchanged, but on the page 'Ride' the number of passengers changed to 4.

bandicam.2022-02-15.15-15-57-087.mp4

Expected result:
After changing the 'Ride Type' from 'TAXI' to 'OWN CAR' the number of passengers should be changed to 4 by default
according to the requirements.

User story and test case links
User story #9

Epic link:
Epic #70

Labels to be added
"Bug" ("bug"), Priority ("pri;medium")