diff --git a/features/admin/managing_blocks.feature b/features/admin/managing_blocks.feature index db8c7dc4..311e55aa 100644 --- a/features/admin/managing_blocks.feature +++ b/features/admin/managing_blocks.feature @@ -38,6 +38,7 @@ Feature: Managing cms blocks Scenario: Deleting content element in block Given there is a block with "store_phone_number" code and "Textarea" content element When I go to the update "store_phone_number" block page + And I fill the name with "Store phone number" if the name field is empty And I delete the content element And I update it Then I should be notified that the block has been successfully updated diff --git a/tests/Behat/Context/Setup/BlockContext.php b/tests/Behat/Context/Setup/BlockContext.php index c7ab01de..4f3b06ec 100755 --- a/tests/Behat/Context/Setup/BlockContext.php +++ b/tests/Behat/Context/Setup/BlockContext.php @@ -13,6 +13,7 @@ use Behat\Behat\Context\Context; use BitBag\SyliusCmsPlugin\Entity\BlockInterface; use BitBag\SyliusCmsPlugin\Entity\ContentConfiguration; +use BitBag\SyliusCmsPlugin\Entity\ContentConfigurationInterface; use BitBag\SyliusCmsPlugin\Repository\BlockRepositoryInterface; use Sylius\Behat\Service\SharedStorageInterface; use Sylius\Component\Core\Model\ChannelInterface; @@ -96,6 +97,7 @@ private function createBlockWithContentElement(string $code, string $contentElem { $block = $this->createBlock($code); + /** @var ContentConfigurationInterface $contentConfiguration */ $contentConfiguration = new ContentConfiguration(); $contentConfiguration->setType(mb_strtolower($contentElement)); $contentConfiguration->setConfiguration(ContentElementHelper::getExampleConfigurationByContentElement($contentElement));