/**
  * Delete CMS Block.
  *
  * @param CmsBlock $cmsBlock
  * @return void
  */
 public function test(CmsBlock $cmsBlock)
 {
     // Precondition
     $cmsBlock->persist();
     $filter = ['identifier' => $cmsBlock->getIdentifier()];
     // Steps
     $this->cmsBlockIndex->open();
     $this->cmsBlockIndex->getCmsBlockGrid()->searchAndOpen($filter, true, false);
     $this->cmsBlockNew->getFormPageActions()->delete();
 }
 /**
  * Run Update CMS Block test.
  *
  * @param CmsBlock $initialCmsBlock
  * @param CmsBlock $cmsBlock
  * @return void
  */
 public function test(CmsBlock $initialCmsBlock, CmsBlock $cmsBlock)
 {
     // Prepare data for tearDown
     $this->storeName = $cmsBlock->getStores();
     // Precondition
     $initialCmsBlock->persist();
     // Steps
     $this->cmsBlockIndex->open();
     $this->cmsBlockIndex->getCmsBlockGrid()->searchAndOpen(['identifier' => $initialCmsBlock->getIdentifier()]);
     $this->cmsBlockNew->getCmsForm()->fill($cmsBlock);
     $this->cmsBlockNew->getFormPageActions()->save();
 }