StreetCode
StreetCode copied to clipboard
[Admin/Для фанатів] When editing, the added category shows a photo from the previous category
trafficstars
Environment: Windows 11, Google Chrome Version 111.0.5563.147 (64-bit) Reproducible: Always Build found: 8490f60
Preconditions
- The site is open.
- Logged as admin.
- At least 1 category has been added.
| Steps to reproduce | Actual result | Expected result | |
|---|---|---|---|
| 1. Photo | 1. Click on the 'Додати нову категорію' and fill in all mandatory fields. 2. Click on the 'Зберегти' button. 3. Click on the 'Edit' button. |
There is no photo in the modal window or a photo of the previous category is uploaded. | There is correct data in the modal window. |
| 2. New category in the list. | 1. Click on the 'Додати нову категорію' and fill in all mandatory fields. 2. Click on the 'Зберегти' button. |
The new category doesn't appear in the list immediately; an admin has to wait about 6 sec. | The new category appears in the list right away after saving. |
| 3. PUT instead POST | 1. Click on the 'Додати нову категорію' and fill in all mandatory fields. 2. Click on the 'Зберегти' button. |
There is a 'PUT 500' request. | There is a 'POST 200' request. |
| 4. Message after add | Open the 'Для фанатів' field on the StreetCode page. 2. Click on the 'Додати нову категорію' and fill in all mandatory fields. 2. Click on the 'Зберегти' button. |
There two 'Категорію успішно додано' messages appear. | The one 'Категорію успішно додано' message appears. |
- [x] There are many identical requests - the cause of the overload needs to be investigated.
https://github.com/ita-social-projects/StreetCode/assets/135108144/be59d62a-bde5-4390-bc8f-0fac5c9e1271
https://github.com/ita-social-projects/StreetCode/assets/135108144/afbfc6a8-0f77-47b4-858c-89e15c6ce675
https://github.com/ita-social-projects/StreetCode/assets/135108144/e0c5c434-6266-458d-9d39-8793857873c1
https://github.com/ita-social-projects/StreetCode/assets/135108144/bc29f6ee-2fd2-4661-8b1b-2adf3fa03e6c
User story and test case links User story #833