Esempio n. 1
0
 /**
  * @group list
  * @guy DeliveryTester\DeliverySteps
  */
 public function toggleActive(DeliveryTester\DeliverySteps $I)
 {
     $I->amOnPage(DeliveryPage::$URL);
     $I->comment("{$this->name}");
     $row = $I->SearchDeliveryMethod($this->name);
     $class = $I->grabAttributeFrom(DeliveryPage::ListActiveButtonLine($row), 'class');
     if ($class == 'prod-on_off disable_tovar') {
         $I->click(DeliveryPage::ListActiveButtonLine($row));
     }
     $I->CheckInFrontEnd($this->name);
 }
Esempio n. 2
0
 /**
  * @group edit
  * @guy DeliveryTester\DeliverySteps
  */
 public function eFieldPriceSpecifiedSymbols(DeliveryTester\DeliverySteps $I)
 {
     $message = InitTest::$textSymbols;
     $I->EditDelivery(null, 'on', null, null, null, null, $message);
     $I->CheckInFrontEnd($this->Name, null, null, null, $message);
 }
Esempio n. 3
0
 public function deliveryPaymentCheckedAll(DeliveryTester\DeliverySteps $I)
 {
     $name = "ДоставкаОплатаВсе";
     //For deleting
     $this->CreatedMethods[] = $name;
     $pay = $I->GrabAllCreatedPayments();
     $I->amOnPage(DeliveryCreatePage::$URL);
     $I->CreateDelivery($name, 'on', null, null, null, null, null, $pay);
     $I->waitForText('Редактирование способа доставки: ' . $name, 10);
     $I->CheckInFrontEnd($name, null, null, null, null, $pay);
 }