/** * Update New StoreGroup * * @param StoreGroup $storeGroupOrigin * @param StoreGroup $storeGroup * @return void */ public function test(StoreGroup $storeGroupOrigin, StoreGroup $storeGroup) { //Preconditions $storeGroupOrigin->persist(); //Steps $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->searchAndOpenStore($storeGroupOrigin); $this->editGroup->getEditFormGroup()->fill($storeGroup); $this->editGroup->getFormPageActions()->save(); }
/** * Delete StoreGroup * * @param StoreGroup $storeGroup * @param string $createBackup * @return void */ public function test(StoreGroup $storeGroup, $createBackup) { //Preconditions $storeGroup->persist(); $this->backupIndex->open()->getBackupGrid()->massaction([], 'Delete', true, 'Select All'); //Steps $this->storeIndex->open(); $this->storeIndex->getStoreGrid()->searchAndOpenStoreGroup($storeGroup); $this->editGroup->getFormPageActions()->delete(); $this->deleteGroup->getDeleteGroupForm()->fillForm(['create_backup' => $createBackup]); $this->deleteGroup->getFormPageFooterActions()->delete(); }