/** * Delete store. * * @return void */ public function tearDown() { $this->objectManager->create('Mage\\Core\\Test\\TestStep\\SetupConfigurationStep', ['configData' => 'store_view_local', 'rollback' => true])->run(); $this->storeIndex->open(); if ($this->store->getGroupId() === 'Main Website/Main Website Store') { $this->storeIndex->getStoreGrid()->openStore($this->store); $this->editStore->getFormPageActions()->delete(); $this->deleteStore->getFormPageActions()->delete(); } else { $this->storeIndex->getStoreGrid()->openStoreGroup(explode('/', $this->store->getGroupId())[1]); $this->editGroup->getFormPageActions()->delete(); $this->deleteGroup->getFormPageActions()->delete(); } }
/** * Select store group. * * @param Store $store * @return void */ public function selectStoreGroup(Store $store) { $storeGroupName = explode("/", $store->getGroupId())[1]; $this->_rootElement->find($this->storeGroupSwitch, Locator::SELECTOR_CSS, 'select')->setValue($storeGroupName); }