Esempio n. 1
0
 /**
  * @group edit
  * @guy DeliveryTester\DeliverySteps
  */
 public function eDescriptionDescriptionPrice(DeliveryTester\DeliverySteps $I)
 {
     $description = $descriptionprice = InitTest::$textSymbols;
     $I->EditDelivery(null, 'on', $description, $descriptionprice);
     $I->waitForText("Редактирование способа доставки: {$this->Name}", NULL, ".title");
     $I->seeInField(DeliveryEditPage::$FieldDescription, $description);
     $I->seeInField(DeliveryEditPage::$FieldDescriptionPrice, $descriptionprice);
     $I->CheckInFrontEnd($this->Name, $description);
 }
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', 'Способ доставки удален');
 }
 /**
  * @group message
  * @guy DeliveryTester\DeliverySteps
  */
 public function editName501(DeliveryTester\DeliverySteps $I)
 {
     $firstname = "ДоствкаИмяМаксСимв";
     $changedname = InitTest::$text501;
     //For deleting
     $this->CreatedMethods[] = $firstname;
     $this->CreatedMethods[] = $changedname;
     $I->createDelivery($firstname);
     $I->waitForText("Редактирование способа доставки: " . $firstname, null, '.title');
     $I->fillField(DeliveryEditPage::$FieldName, $changedname);
     $I->click(DeliveryEditPage::$ButtonSave);
     $I->CheckForAlertPresent('error', 'namemax');
 }
Esempio n. 4
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);
 }