Skip to content

Commit ff37841

Browse files
committed
✅ adjusted tests for k4
Signed-off-by: bnomei <[email protected]>
1 parent 3a6bd1f commit ff37841

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

tests/fixtures/blueprints/file.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ blueprint: file
22

33
title: Project Image
44

5+
create:
6+
width: 500
7+
height: 500
8+
crop: true
9+
10+
focus: true
11+
512
accept:
613
extension: jpg, png
714
maxheight: 200

tests/fixtures/misc/page001.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: Intro
2+
blueprint: page
3+
4+
create:
5+
title:
6+
label: Product name
7+
fields:
8+
- price
9+
- brand
10+
redirect: false
11+
status: draft
12+
13+
options:
14+
preview: "{{ site.url }}?preview={{ page.slug }}"
15+
16+
fields:
17+
autoplay:
18+
type: toggle
19+
default: true
20+
translate: false
21+
width: 1/3
22+
text:
23+
- play on click
24+
- autoplay
25+
26+

tests/fixtures/misc/page002.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
blueprint: page
2+
title: Veranstaltung
3+
tabs:
4+
# main content
5+
content:
6+
columns:
7+
main:
8+
width: 2/3
9+
fields:
10+
date:
11+
label: Erster Termin
12+
type: date
13+
required: true
14+
heading:
15+
label: Seitenüberschrift
16+
type: writer
17+
# size: small # not from writer
18+
inline: true
19+
text:
20+
label: Text
21+
type: writer
22+
# size: large # not from writer

tests/fixtures/misc/page003.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
blueprint: page
2+
title: Filter and Ignore in Pages section
3+
sections:
4+
filterable:
5+
type: pages
6+
query: page.childrenAndDrafts.filterBy('category', 'video')
7+
template: article
8+
templates:
9+
- article
10+
- aside
11+
- gallery
12+
- video
13+
templatesIgnore:
14+
- some
15+
- other
16+
- values

tests/fixtures/sections/files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
label: Gallery
22
type: files
33
template: gallery
4+
query: page.images

0 commit comments

Comments
 (0)