Skip to content

Commit

Permalink
test(slb-306): fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elistone committed May 10, 2024
1 parent 79134d5 commit 26854e7
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion tests/schema/specs/blocks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ test('Blocks', async () => {
}
}
... on BlockInfoGrid {
gridItems: items {
gridItems {
icon
textContent {
markup
Expand Down Expand Up @@ -156,6 +156,9 @@ test('Blocks', async () => {
<p>A standalone paragraph with <strong><em>markup</em></strong> and <a href="/en/architecture" data-type="Content: Basic page" data-id="[numeric]" data-entity-type="node">link</a></p>
",
},
{
"__typename": "BlockHorizontalSeparator",
},
{
"__typename": "BlockMedia",
"caption": "Media image",
Expand All @@ -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": "
<p>All kinds of allowed blocks</p>
<ul><li>bla</li></ul>
<h2 class="wp-block-custom-heading">Heading</h2>
<blockquote class="wp-block-quote"><p>Quote</p><cite>Citation</cite></blockquote>
<p></p>
",
},
},
{
"__typename": "BlockMarkup",
"markup": "
Expand Down Expand Up @@ -244,6 +268,33 @@ test('Blocks', async () => {
"quote": "Lorem ipsum dolor sit amet, <strong>consectetur</strong> adipiscing elit. Vivamus sagittis nisi nec neque porta, a ornare ligula efficitur.",
"role": "Project manager",
},
{
"__typename": "BlockAccordion",
"items": [
{
"__typename": "BlockAccordionItemText",
"icon": "",
"textContent": {
"markup": "
<p>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.</p>
",
},
"title": "With a single paragraph and no icon",
},
{
"__typename": "BlockAccordionItemText",
"icon": "arrow",
"textContent": {
"markup": "
<ul><li>Moitié-moitié</li><li>Fribourgeoise</li></ul>
<p>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.</p>
",
},
"title": "With a list and a paragraph and arrow icon",
},
],
},
{
"__typename": "BlockInfoGrid",
"gridItems": [
Expand Down

0 comments on commit 26854e7

Please sign in to comment.