From 26854e7ff5f9ac6277852e15208d48d6f7b93b4a Mon Sep 17 00:00:00 2001 From: Eli Stone Date: Fri, 10 May 2024 14:36:24 +0100 Subject: [PATCH] test(slb-306): fixing tests --- tests/schema/specs/blocks.spec.ts | 53 ++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/tests/schema/specs/blocks.spec.ts b/tests/schema/specs/blocks.spec.ts index c8b042e83..a2ebecbb2 100644 --- a/tests/schema/specs/blocks.spec.ts +++ b/tests/schema/specs/blocks.spec.ts @@ -107,7 +107,7 @@ test('Blocks', async () => { } } ... on BlockInfoGrid { - gridItems: items { + gridItems { icon textContent { markup @@ -156,6 +156,9 @@ test('Blocks', async () => {

A standalone paragraph with markup and link

", }, + { + "__typename": "BlockHorizontalSeparator", + }, { "__typename": "BlockMedia", "caption": "Media image", @@ -174,6 +177,27 @@ test('Blocks', async () => { "__typename": "BlockForm", "url": "http://127.0.0.1:8000/en/form/contact", }, + { + "__typename": "BlockImageWithText", + "image": { + "__typename": "MediaImage", + }, + "imagePosition": "right", + "textContent": { + "__typename": "BlockMarkup", + "markup": " +

All kinds of allowed blocks

+ + + +

Heading

+ +

Quote

Citation
+ +

+ ", + }, + }, { "__typename": "BlockMarkup", "markup": " @@ -244,6 +268,33 @@ test('Blocks', async () => { "quote": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sagittis nisi nec neque porta, a ornare ligula efficitur.", "role": "Project manager", }, + { + "__typename": "BlockAccordion", + "items": [ + { + "__typename": "BlockAccordionItemText", + "icon": "", + "textContent": { + "markup": " +

Incididunt laborum velit non proident nostrud velit. Minim excepteur ut aliqua nisi. Culpa laboris consectetur proident. Tempor esse ullamco et dolor proident id officia laborum voluptate nostrud elit dolore qui amet. Ex Lorem irure eu anim ipsum officia.

+ ", + }, + "title": "With a single paragraph and no icon", + }, + { + "__typename": "BlockAccordionItemText", + "icon": "arrow", + "textContent": { + "markup": " + + +

Incididunt laborum velit non proident nostrud velit. Minim excepteur ut aliqua nisi. Culpa laboris consectetur proident. Tempor esse ullamco et dolor proident id officia laborum voluptate nostrud elit dolore qui amet. Ex Lorem irure eu anim ipsum officia.

+ ", + }, + "title": "With a list and a paragraph and arrow icon", + }, + ], + }, { "__typename": "BlockInfoGrid", "gridItems": [