BinaryStudioAcademy / bsa-2023-towhub

1 stars 12 forks source link

Bug: When the driver logs out of the system, and another driver logs in, the shift is opened on the previous driver #383

Open Iryna-Permiakova opened 11 months ago

Iryna-Permiakova commented 11 months ago

Preconditions: Driver is logged in

Steps to reproduce:

  1. Choose a truck and start a shift
  2. Log out
  3. Log in to the system with another driver
  4. Choose a truck and start a shift
  5. Check whether a shift with a new driverId has been opened in the database

Actual result: When the driver logs out of the system, and another driver logs in, the shift is opened on the previous driver

Expected result: When the driver logs out of the system, and another driver logs in, the shift is opened with a new driver

Environment: Windows 10 Pro x64, Google Chrome v. 116.0.5845.111

Attachments: https://www.loom.com/share/3d22b2dbc91f499590aa230495d17fc3?sid=5413943b-48a1-4438-8467-9b4b5b4162ee video with requests: https://www.loom.com/share/30314ccb0e3f4cf69276848c4c29ca66?sid=1ab4a86c-a004-47aa-a008-d31b0c7592c3

Notes: The video shows that a new driver logged in with ID 469. However, the shift occurred to the previous driver who was in the system, and the next shift was also created on the previous driver (467)