/** * @group a * @guy OrdersTester\OrdersSteps */ public function ProductPrice1AndPointParentCategory(OrdersTester\OrdersSteps $I) { $I->wantTo('Verify Presence Price in Second Child Category on Select Menu.'); $I->amOnPage('/admin/components/run/shop/orders/create'); $I->createProduct($nameProduct = 'WwWTOvaR55', $nameVariantProduct = NULL, $priceProduct = '9878.3', $articleProduct = NULL, $amountProduct = NULL, $categoryProduct = CreateCategoryOrdersPage::$CrtCatName3ForSearchCategory); $I->SearchProductNameSelect($typeCategoryName = CreateCategoryOrdersPage::$CrtCatName3ForSearchOrder, $typeProductName = $nameProduct); $I->AddToBascketSelect(); $I->SearchProductInBascket($name = $nameProduct, $variant = $nameVariantProduct, $Price = $priceProduct, $totalPrice = $priceProduct, $Check = $priceProduct); InitTest::ClearAllCach($I); }
/** * @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); }