/** * @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}"); } }