StreetCode
StreetCode copied to clipboard
[TC][Admin/Editor/Categories] [Functionality] Verify that admin can edit an existing category
Priority: High
Objective: This test case verifies that an admin can edit an existing category by clicking the "Редагувати" (Edit) "pencil icon" under the "Дії" (Actions) column in the categories table.
Preconditions
- The user is logged in as an admin on Streetcode
- The user navigated to the "Едітор" section
- "Категорії" tab is opened
- At least one category is listed in the table
Steps to reproduce
- Locate an existing category in the categories table
- Click on the "Редагувати" (Edit) "pencil icon" under the "Дії" (Actions) column
- In the modal window that opens, modify the "Назву" (Title) or change the "Зображення"(Image)
- Click the "Зберегти" (Save) button
Expected result
- The modal window closes automatically
- The edited category is saved and now reflects the modified "Назву" (Title) and/or "Зображення" (Image) in the categories table
- A success message is displayed confirming the update: "Категорію успішно оновлено"
User story: https://github.com/ita-social-projects/StreetCode/issues/833 Epic : https://github.com/ita-social-projects/StreetCode/issues/998