1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

feat(tests): add shop fixture

This commit is contained in:
Awilum
2021-09-26 13:16:03 +03:00
parent 10db1f37a0
commit 271fa48c81
14 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
title: Bikes
entries:
fetch:
items:
id: shop/catalog/bikes
options:
collection: true

View File

@@ -0,0 +1,7 @@
title: GT
entries:
fetch:
items:
id: shop/catalog/bikes/gt
options:
collection: true

View File

@@ -0,0 +1,14 @@
title: GT
price: 2000
entries:
fetch:
discounts_available:
id: shop/discounts
options:
collection: true
filter:
where:
-
key: category
operator: eq
value: bikes

View File

@@ -0,0 +1,14 @@
title: Sensor
price: 1700
entries:
fetch:
discounts_available:
id: shop/discounts
options:
collection: true
filter:
where:
-
key: category
operator: eq
value: bikes

View File

@@ -0,0 +1,7 @@
title: Norco
entries:
fetch:
items:
id: shop/catalog/bikes/norco
options:
collection: true

View File

@@ -0,0 +1,14 @@
title: Rage
price: 2100
entries:
fetch:
discounts_available:
id: shop/discounts
options:
collection: true
filter:
where:
-
key: category
operator: eq
value: bikes

View File

@@ -0,0 +1,7 @@
title: Catalog
entries:
fetch:
bikes:
id: shop/catalog/bikes
snowboards:
id: shop/catalog/snowboards

View File

@@ -0,0 +1,7 @@
title: Burton
entries:
fetch:
items:
id: shop/catalog/snowboards/burton
options:
collection: true

View File

@@ -0,0 +1,14 @@
title: Burton Family Tree Hometown Hero Camber Splitboard
price: 849.95
entries:
fetch:
discounts_available:
id: shop/discounts
options:
collection: true
filter:
where:
-
key: category
operator: eq
value: snowboards

View File

@@ -0,0 +1,7 @@
title: Snowboards
entries:
fetch:
items:
id: shop/catalog/snowboards
options:
collection: true

View File

@@ -0,0 +1,3 @@
title: Discount 30%
value: 30
category: bikes

View File

@@ -0,0 +1,3 @@
title: Discount 50%
value: 50
category: snowboards

View File

@@ -0,0 +1,7 @@
title: Discounts
entries:
fetch:
items:
id: shop/discounts
options:
collection: true

View File

@@ -0,0 +1,7 @@
title: Shop
entries:
fetch:
catalog:
id: shop/catalog
discounts:
id: shop/discounts