Esempio n. 1
0
 /**
  * @group edit
  * @guy DeliveryTester\DeliverySteps
  */
 public function deleteAllCreatedMethods(DeliveryTester\DeliverySteps $I)
 {
     $I->amOnPage(DeliveryPage::$URL);
     //Deleting
     $I->DeleteDeliveryMethods($this->CreatedMethods);
     unset($this->CreatedMethods);
 }
Esempio n. 2
0
 /**
  * @group list
  * @guy DeliveryTester\DeliverySteps
  */
 public function buttonDelete(DeliveryTester\DeliverySteps $I)
 {
     $I->amOnPage(DeliveryPage::$URL);
     $row = $I->SearchDeliveryMethod($this->name);
     if (!$row) {
         $I->createDelivery($this->name);
         $row = $I->SearchDeliveryMethod($this->name);
     }
     $I->comment("{$row}");
     $I->click(DeliveryPage::ListCheckboxLine($row));
     $I->click(DeliveryPage::$DeleteButton);
     $I->waitForText("Удаление способов доставки", NULL, "//*[@id='mainContent']/div/div[1]/div[1]/h3");
     $I->wait(2);
     $I->click(DeliveryPage::$DeleteWindowDelete);
     $I->exactlySeeAlert($I, 'success', 'Способ доставки удален');
 }