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:
7
tests/fixtures/entries/shop/catalog/bikes/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/bikes/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Bikes
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/catalog/bikes
|
||||
options:
|
||||
collection: true
|
7
tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/bikes/gt/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: GT
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/catalog/bikes/gt
|
||||
options:
|
||||
collection: true
|
14
tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml
vendored
Normal file
14
tests/fixtures/entries/shop/catalog/bikes/gt/fury/entry.yaml
vendored
Normal 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
|
14
tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml
vendored
Normal file
14
tests/fixtures/entries/shop/catalog/bikes/gt/sensor/entry.yaml
vendored
Normal 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
|
7
tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/bikes/norco/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Norco
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/catalog/bikes/norco
|
||||
options:
|
||||
collection: true
|
14
tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml
vendored
Normal file
14
tests/fixtures/entries/shop/catalog/bikes/norco/rage/entry.yaml
vendored
Normal 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
|
7
tests/fixtures/entries/shop/catalog/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Catalog
|
||||
entries:
|
||||
fetch:
|
||||
bikes:
|
||||
id: shop/catalog/bikes
|
||||
snowboards:
|
||||
id: shop/catalog/snowboards
|
7
tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/snowboards/burton/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Burton
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/catalog/snowboards/burton
|
||||
options:
|
||||
collection: true
|
14
tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml
vendored
Normal file
14
tests/fixtures/entries/shop/catalog/snowboards/burton/hero/entry.yaml
vendored
Normal 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
|
7
tests/fixtures/entries/shop/catalog/snowboards/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/catalog/snowboards/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Snowboards
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/catalog/snowboards
|
||||
options:
|
||||
collection: true
|
3
tests/fixtures/entries/shop/discounts/30/entry.yaml
vendored
Normal file
3
tests/fixtures/entries/shop/discounts/30/entry.yaml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
title: Discount 30%
|
||||
value: 30
|
||||
category: bikes
|
3
tests/fixtures/entries/shop/discounts/50/entry.yaml
vendored
Normal file
3
tests/fixtures/entries/shop/discounts/50/entry.yaml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
title: Discount 50%
|
||||
value: 50
|
||||
category: snowboards
|
7
tests/fixtures/entries/shop/discounts/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/discounts/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Discounts
|
||||
entries:
|
||||
fetch:
|
||||
items:
|
||||
id: shop/discounts
|
||||
options:
|
||||
collection: true
|
7
tests/fixtures/entries/shop/entry.yaml
vendored
Normal file
7
tests/fixtures/entries/shop/entry.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
title: Shop
|
||||
entries:
|
||||
fetch:
|
||||
catalog:
|
||||
id: shop/catalog
|
||||
discounts:
|
||||
id: shop/discounts
|
Reference in New Issue
Block a user