コード例 #1
0
 /**
  * @group a
  * @guy OrdersTester\OrdersSteps
  */
 public function ICMS823JiraRegressionBug(OrdersTester\OrdersSteps $I)
 {
     $I->wantTo('ICMS-823 Jira, Verify Noactive Category Presence on Create Orders Admin Page.');
     $I->createCategoryProduct('Category Regression Jira ICMS-823', NULL);
     $I->amOnPage('/admin/components/run/shop/orders/create');
     $I->wait('1');
     $I->click(\CreateOrderAdminPage::$CrtZMenuCategoryDefolt);
     $I->fillField(\CreateOrderAdminPage::$CrtZMenuCategoryInput, 'Category');
     $I->click(\CreateOrderAdminPage::$CrtZMenuCategorySearchButton);
     $I->see('Category Regression Jira ICMS-823', 'a.chosen-single > span');
 }
コード例 #2
0
 /**
  * @group aa
  * @guy OrdersTester\OrdersSteps
  */
 public function VerifyTotalPriceAddInFieldAmount(OrdersTester\OrdersSteps $I)
 {
     $I->wantTo('Check the map editing the amount of added an item to cart and the correct calculation of the amount of order.');
     $I->createProduct($nameProduct = 'Prd0 for1 Цыкл2 подсчета3 и4 отображения5 Edit6', $nameVariantProduct = NULL, $priceProduct = 1);
     $I->click(\NavigationBarPage::$Orders);
     $I->click(\NavigationBarPage::$OrdersList);
     $I->wait('1');
     $I->click(\OrdersListPage::$ListButtCreateOrder);
     $I->wait('1');
     $I->fillField('#productNameForOrders', 'Prd0 for1 Цыкл2 подсчета3 и4 отображения5 Edit6');
     $I->wait('1');
     $I->click('//body/ul[2]/li[1]/a');
     $I->wait('1');
     $I->click(CreateOrderAdminPage::$CrtPButtAddToCart);
     for ($j = 1; $j < 2147483647; $j = $j + 88998899) {
         $I->click(CreateOrderAdminPage::$CrtPButtProduct);
         $I->wait('1');
         $a = $I->grabValueFrom(CreateOrderAdminPage::$CrtPFieldAmount);
         $I->comment("Amount Product In Basket({$a})");
         $I->fillField(CreateOrderAdminPage::$CrtPFieldAmount, "{$j}");
         $I->wait('1');
         $I->see("{$j}", CreateOrderAdminPage::$CrtPFieldTotalPrice);
         $I->see("{$j}", CreateOrderAdminPage::$CrtPFieldCommon);
         $I->click(CreateOrderAdminPage::$CrtPButtOrder);
         $I->click(CreateOrderAdminPage::$CrtOButtUpdate);
         $I->seeInField(CreateOrderAdminPage::$CrtOFieldTotalPrice, "{$j}");
     }
 }
コード例 #3
0
 /**
  * @group a
  * @guy OrdersTester\OrdersSteps
  */
 public function VerifyTextMessageButtonCreateAddProducts(OrdersTester\OrdersSteps $I)
 {
     $I->wantTo('Verify Text Message User Not Selected.');
     $I->createProduct($nameProduct = 'Товар для Text Message', $nameVariantProduct = NULL, $priceProduct = 1);
     $I->amOnPage(CreateOrderAdminPage::$CrtPURL);
     $I->click(CreateOrderAdminPage::$CrtPButtProduct);
     $I->fillField('//table[1]/tbody/tr[1]/td[1]/div/input', 'Товар для Text Message');
     $I->wait('1');
     $I->click('//body/ul[2]/li[1]/a');
     $I->wait('1');
     $I->click(CreateOrderAdminPage::$CrtPButtAddToCart);
     $I->click(CreateOrderAdminPage::$CrtPButtOrder);
     $I->click(CreateOrderAdminPage::$CrtOButtUpdate);
     $I->click(CreateOrderAdminPage::$CrtPButtCreateAndGoBack);
     $I->wait('1');
     $I->see('Пользователь не выбран', CreateOrderAdminPage::$CrtUMessageAlertPresence);
 }