E1. Story 2. Edit and add products (back-end scripts)

User story

As a admin panel user
I want to edit and add products
So that helps to manage product prices, names, image

Visual design

https://www.figma.com/file/VNME8l1UGl6nNm51W8EA76/Product-page?type=design&node-id=14-561&mode=design&t=fc7qyiW7stlIlUC2-0

Acceptance criteria

01

Given: Open the page with all products

When: click add product

Then: have the ability to fill name of the product
AND the price of the new product
AND image of the product
AND all fields mandatory

02

Given: Open the page with all products

When: click edit product

Then: have the ability to change the name of the product
AND the price of the product
AND image of the product
AND all fields mandatory

03

Given: Open the page with all products

When: click edit product
AND set the price of the product to less than “0”
AND click save to update

Then: the info doesn’t update
AND see the message: “The price can’t be less than 0“

Comments

Leave a Reply