Ejemplo n.º 1
0
 /**
  * Creating Cms page.
  *
  * @param CmsPageFixture $cms
  * @return void
  */
 public function test(CmsPageFixture $cms)
 {
     // Steps
     $this->cmsIndex->open();
     $this->cmsIndex->getPageActionsBlock()->addNew();
     $this->cmsPageNew->getPageForm()->fill($cms);
     $this->cmsPageNew->getPageMainActions()->save();
 }
 /**
  * Creating Cms page.
  *
  * @param array $data
  * @param string $fixtureType
  * @return array
  */
 public function test(array $data, $fixtureType)
 {
     // Steps
     $cms = $this->fixtureFactory->createByCode($fixtureType, ['data' => $data]);
     $this->cmsIndex->open();
     $this->cmsIndex->getPageActionsBlock()->addNew();
     $this->cmsPageNew->getPageForm()->fill($cms);
     $this->cmsPageNew->getPageMainActions()->save();
     return ['cms' => $cms];
 }
Ejemplo n.º 3
0
 /**
  * Creating Cms page.
  *
  * @param CmsPageFixture $cms
  * @return void
  */
 public function test(CmsPageFixture $cms)
 {
     // Steps
     $this->cmsIndex->open();
     $this->cmsIndex->getPageActionsBlock()->addNew();
     //TODO: remove cms page new refresh after resolve issue with static js files publication (MAGETWO-37898)
     $this->cmsPageNew->open();
     $this->cmsPageNew->getPageForm()->fill($cms);
     $this->cmsPageNew->getPageMainActions()->save();
 }
 /**
  * Creating Cms page.
  *
  * @param array $data
  * @param string $fixtureType
  * @return array
  */
 public function test(array $data, $fixtureType)
 {
     // Steps
     $cms = $this->fixtureFactory->createByCode($fixtureType, ['data' => $data]);
     $this->cmsIndex->open();
     $this->cmsIndex->getPageActionsBlock()->addNew();
     //TODO: remove cms page new refresh after resolve issue with static js files publication (MAGETWO-37898)
     $this->cmsPageNew->open();
     $this->cmsPageNew->getPageForm()->fill($cms);
     $this->cmsPageNew->getPageMainActions()->save();
     return ['cms' => $cms];
 }