ita-social-projects / StreetCode

MIT License
19 stars 8 forks source link

[Admin/Wow-факти] Unable to add multiple facts to a Streetcode #1671

Open arisssha opened 1 month ago

arisssha commented 1 month ago

Environment: macOS 13.6.8/Google Chrome 127.0.6533.89 Reproducible: always Build found: commit 73879a7

Preconditions The user is logged in as an admin and is on the 'Новий Стріткод' page, having navigated to the 'Wow-факт' block.

Steps to reproduce

  1. Click the "+" button to add a new "Wow-факт."
  2. Fill in all mandatory fields with valid data.
  3. Click the "Зберегти" button.
  4. Verify that the newly created interesting fact was added successfully.
  5. Repeat steps 1-3 to add a second interesting fact.
  6. Verify that the second newly created fact was added successfully and that the system displays both interesting facts.

Expected result The system displays both interesting facts, confirming that it can handle the addition of multiple facts.

Actual result After the second interesting fact is added to the Streetcode, the system replaces the first fact with the newly added second fact and displays only one fact.

https://github.com/user-attachments/assets/39b34ffd-f290-4783-9903-f5b6e52132cf

Additional details: The system's behavior is inconsistent. Sometimes an admin can successfully add two interesting facts to the Streetcode. However, when attempting to add a third fact, the system replaces one of the existing facts instead of adding a new one, and only two facts are displayed instead of three.

User story #123 Test case (https://github.com/orgs/ita-social-projects/projects/21/views/1?pane=issue&itemId=75615786)

DDeviak commented 1 month ago

Hello, @arisssha. I was not able to reproduce this issue. I suggest retesting it, and if the issue is still unreproducible, you can close it.

https://github.com/user-attachments/assets/18fb8314-4d1e-4c43-a0e2-9e36e6db15a4

arisssha commented 1 month ago

After clearing all cached data from the browser and the system, the bug was not reproducible for 4-5 attempts. However, it later became reproducible again. I also tried reproducing the problem in other browsers, such as Safari and Firefox, and it is reproducible in both. Videos demonstrating the issue in Chrome and Safari are provided below.

https://github.com/user-attachments/assets/97ad8f1e-4dcf-407e-bed6-961129206a1c

https://github.com/user-attachments/assets/7238d689-1d3e-44d5-a2ab-ece4401b0944

arisssha commented 1 month ago

Issue reproducible only on macOS Ventura 13.6.8.