/** * @before uploadImages * @before login */ public function addEditCheckCommercialRentAdvert(VpnTester $api, \Step\Vpn\EditAdvert $I, \Step\Vpn\Advert $he, \Step\Vpn\AdminAdvert $admin, \Step\Vpn\UserAdvertsList $list) { $this->addCommercialSaleAdvert($api); $I->loginAgency(); $I->openEditCommercialPage(); $I->editCommercialAdvert(); $I->fillInEditCommercialAdvertCheckboxes(); $he->uploadCommercialImage(); $he->clickIamOwnerLink(); $he->clickCreateAdvertButton(); $he->acceptModal(); //todo: add admin function to do 2nd moderate (new functional) $this->moderateAdv($admin); $this->open1stAdvert($list); $I->checkEditedCommercialProperties(); }
/** * @before loginAgency */ public function createModerateCheckCommercialSalePlain(\Step\Vpn\Advert $I, \Step\Vpn\AdminAdvert $admin, \Step\Vpn\UserAdvertsList $list) { $I->fillInStandardCommercialType(); $I->fillInCommercialAddress(); $I->fillInCommercialObjPropertiesPlain(); $I->checkCommercialObjectPropertiesPlain(); $I->agreeObjectProperties(); $I->fillInCommercialAdvertPropertiesPlain(); $I->clickIamOwnerLink(); $I->clickCreateAdvertButton(); $I->acceptModal(); $this->moderateAdv($admin); $this->open1stAdvert($list); $I->checkCommercialPropertiesPlain(); }