-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcases.json
More file actions
61 lines (61 loc) · 1.62 KB
/
cases.json
File metadata and controls
61 lines (61 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"cases": [
{
"description": "Filter by Stationery shows single product",
"action": "filter",
"filter": "Stationery",
"expectedCount": 1,
"expectedIds": ["P006"]
},
{
"description": "Out of stock products show correct status",
"action": "filter",
"filter": "Electronics",
"expectedOutOfStock": ["P003"],
"expectedInStock": ["P001", "P002"]
},
{
"description": "Product detail API returns all proto fields",
"action": "api",
"endpoint": "/api/products/P004",
"expectedBody": {
"id": "P004",
"name": "Standing Desk",
"category": "Furniture",
"price": 499.99,
"stock": 12,
"in_stock": true
}
},
{
"description": "Non-existent product returns 404",
"action": "api",
"endpoint": "/api/products/P999",
"expectedStatus": 404
},
{
"description": "Proto binary endpoint sets correct content type",
"action": "api",
"endpoint": "/api/products.bin",
"expectedContentType": "application/x-protobuf"
},
{
"description": "All categories filter returns full catalog",
"action": "filter",
"filter": "all",
"expectedCount": 6
},
{
"description": "UI status text updates after filter",
"action": "filter",
"filter": "Furniture",
"expectedStatusText": "Showing 2 products"
},
{
"description": "Table has correct column headers",
"action": "load",
"filter": "all",
"expectedColumns": ["ID", "Name", "Category", "Price", "Stock", "In Stock"]
}
]
}