StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[TC][Admin/Editor/Categories] [Functionality] Verify that admin can edit an existing category

Open ChornaOksana opened this issue 1 year ago • 0 comments

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

  1. The user is logged in as an admin on Streetcode
  2. The user navigated to the "Едітор" section
  3. "Категорії" tab is opened
  4. At least one category is listed in the table

Steps to reproduce

  1. Locate an existing category in the categories table
  2. Click on the "Редагувати" (Edit) "pencil icon" under the "Дії" (Actions) column
  3. In the modal window that opens, modify the "Назву" (Title) or change the "Зображення"(Image)
  4. 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

ChornaOksana avatar Jul 23 '24 17:07 ChornaOksana