Skip to content

Commit

Permalink
✅ adjusted tests for k4
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Nov 28, 2023
1 parent 3a6bd1f commit ff37841
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/fixtures/blueprints/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ blueprint: file

title: Project Image

create:
width: 500
height: 500
crop: true

focus: true

accept:
extension: jpg, png
maxheight: 200
Expand Down
26 changes: 26 additions & 0 deletions tests/fixtures/misc/page001.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: Intro
blueprint: page

create:
title:
label: Product name
fields:
- price
- brand
redirect: false
status: draft

options:
preview: "{{ site.url }}?preview={{ page.slug }}"

fields:
autoplay:
type: toggle
default: true
translate: false
width: 1/3
text:
- play on click
- autoplay


22 changes: 22 additions & 0 deletions tests/fixtures/misc/page002.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
blueprint: page
title: Veranstaltung
tabs:
# main content
content:
columns:
main:
width: 2/3
fields:
date:
label: Erster Termin
type: date
required: true
heading:
label: Seitenüberschrift
type: writer
# size: small # not from writer
inline: true
text:
label: Text
type: writer
# size: large # not from writer
16 changes: 16 additions & 0 deletions tests/fixtures/misc/page003.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
blueprint: page
title: Filter and Ignore in Pages section
sections:
filterable:
type: pages
query: page.childrenAndDrafts.filterBy('category', 'video')
template: article
templates:
- article
- aside
- gallery
- video
templatesIgnore:
- some
- other
- values
1 change: 1 addition & 0 deletions tests/fixtures/sections/files.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
label: Gallery
type: files
template: gallery
query: page.images

0 comments on commit ff37841

Please sign in to comment.