Skip to content

Commit 4fbb2ae

Browse files
committed
Check that rendered values do not contain directives
1 parent 6638f7e commit 4fbb2ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductWithDescriptionDirectivesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function testHtmlDirectivesRendered()
5858
$response = $this->graphQlQuery($query);
5959

6060
self::assertContains($assertionCmsBlockText, $response['products']['items'][0]['description']);
61+
self::assertNotContains('{{block id', $response['products']['items'][0]['description']);
6162
self::assertContains($assertionCmsBlockText, $response['products']['items'][0]['short_description']);
63+
self::assertNotContains('{{block id', $response['products']['items'][0]['short_description']);
6264
}
6365
}

0 commit comments

Comments
 (0)