/**
  * Run step.
  *
  * @return void
  */
 public function run()
 {
     $this->customerAccountLogout->open();
     $this->cmsIndex->getFooterBlock()->clickLink('Orders and Returns');
     $this->salesGuestForm->getSearchForm()->fill($this->order);
     $this->salesGuestForm->getSearchForm()->submit();
 }
 /**
  * Select store.
  *
  * @param Store $store
  * @return void
  */
 protected function selectStore(Store $store)
 {
     $headerBlock = $this->cmsIndexPage->getHeaderBlock();
     $footerBlock = $this->cmsIndexPage->getFooterBlock();
     if ($footerBlock->isStoreGroupSwitcherVisible() && $footerBlock->isStoreGroupVisible($store)) {
         $footerBlock->selectStoreGroup($store);
     }
     if ($headerBlock->isStoreViewDropdownVisible()) {
         $headerBlock->selectStore($store->getName());
     }
 }
 /**
  * Assert that created store view is not available on frontend.
  *
  * @param Store $store
  * @param CmsIndex $cmsIndex
  * @return void
  */
 public function processAssert(Store $store, CmsIndex $cmsIndex)
 {
     $cmsIndex->open();
     $footerBlock = $cmsIndex->getFooterBlock();
     $headerBlock = $cmsIndex->getHeaderBlock();
     if ($footerBlock->isStoreGroupSwitcherVisible() && $footerBlock->isStoreGroupVisible($store)) {
         $footerBlock->selectStoreGroup($store);
     }
     $isStoreViewVisible = $headerBlock->isStoreViewDropdownVisible() ? $headerBlock->isStoreViewVisible($store) : false;
     // if only one store view is assigned to store group
     \PHPUnit_Framework_Assert::assertFalse($isStoreViewVisible, "Store view '{$store->getName()}' is visible in dropdown on CmsIndex page.");
 }