/** * @guy CallbacksTester\CallbacksSteps */ public function SaveAndExitButton(CallbacksTester\CallbacksSteps $I) { $name = 'Karl'; $phone = '898989'; $comment = 'Comment by Karl'; $I->EditCallback($name, $phone, $comment, $save = 'saveexit'); $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->see('Изменения сохранены'); $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $I->see('Karl', './/*[@id="callbacks_all"]/table/tbody/tr[1]/td[3]/a'); $I->see('898989', './/*[@id="callbacks_all"]/table/tbody/tr[1]/td[4]'); $I->click(CallbacksPage::UserNameLine('1')); $I->waitForElement('.//*[@id="editCallbackForm"]/div[2]/label'); $I->seeInField(CallbacksPage::$CommentEdit, 'Comment by Karl'); InitTest::ClearAllCach($I); }
public function DeleteNotDefaultStatus(CallbacksTester $I) { //Удаление статуса не отмеченного по умолчанию $I->amOnPage("/admin/components/run/shop/callbacks/statuses"); $I->comment((string) $this->j); $I->comment((string) $this->rows); if ($this->j < $this->rows) { $this->j++; $idDeleteStatus = $I->grabTextFrom(".//*[@id='orderStatusesList']/section/div[2]/div/table/tbody/tr[{$this->j}]/td[1]"); $I->click(CallbacksPage::DeleteStatusButtonLine($this->j)); } else { $this->j--; $idDeleteStatus = $I->grabTextFrom(".//*[@id='orderStatusesList']/section/div[2]/div/table/tbody/tr[{$this->j}]/td[1]"); $I->click(CallbacksPage::DeleteStatusButtonLine($this->j)); } // $I->waitForElementVisible("alert.in.fade.alert-success"); // $I->See("Статус был удален"); // $I->waitForElementNotVisible("alert.in.fade.alert-success"); $I->wait(2); $this->rows--; $rowsAfterDelete = $I->grabTagCount($I, "tbody tr"); $I->comment($rowsAfterDelete); $I->assertEquals($rowsAfterDelete, $this->rows); for ($k = 1; $k <= $this->rows; $k++) { $noId = $I->grabTextFrom(".//*[@id='orderStatusesList']/section/div[2]/div/table/tbody/tr[{$k}]/td[1]"); $I->comment("{$noId}"); if ($noId == $idDeleteStatus) { $I->fail("NOT DELETED"); break; } } InitTest::ClearAllCach($I); }
protected function DCOS(OrderStatusesTester $I) { $I->amOnPage(OrderStatusesListPage::$ListURL); $I->wait('1'); $numberStatus = $I->grabTagCount($I, 'tbody tr'); $I->comment("Number Rows:'{$numberStatus}'"); for ($j = 1; $j <= $numberStatus; ++$j) { $I->wait('1'); $CurrentStatus = $I->grabTextFrom("//table/tbody/tr[{$j}]/td[2]/a"); if ($CurrentStatus != 'Новый' && $CurrentStatus != 'Доставлен') { $I->wait('1'); $I->click("//table/tbody/tr[{$j}]/td[5]/a"); $I->wait('1'); $I->click(OrderStatusesListPage::$DeleteButtonDelete); $I->wait('1'); $numberStatus--; $j--; $I->comment("Status:'{$CurrentStatus}' is Deleting."); } } InitTest::ClearAllCach($I); }
public function DeleteCurUsedInPaymentMethods(CurrenciesTester $I) { //Проверка возможности удаления валюты, которая используется в способах оплаты $I->amOnPage("/admin/components/run/shop/currencies"); $SymbolCur = $I->grabTextFrom(".//*[@class='']/tr[4]/td[4]"); $id = $I->grabTextFrom(".//*[@class='']/tr[4]/td[1]"); $I->comment("{$SymbolCur}"); $I->comment("{$id}"); $I->amOnPage('/admin/components/run/shop/paymentmethods/create'); $I->waitForText('Создание способа оплаты'); $I->fillField(PaymentCreatePage::$FieldName, 'Оплата'); $I->click(PaymentCreatePage::$SelectCurrency); $I->click(PaymentCreatePage::SelectCurrency('4')); $I->wait('1'); $SelectCur = $I->grabTextFrom(PaymentCreatePage::SelectCurrency('4')); $I->comment("{$SelectCur}"); $SelectCur = trim(preg_replace("/\\s+/", " ", $SelectCur)); $Cur = explode(" ", $SelectCur); foreach ($Cur as $key => $value) { if ($value) { $I->comment("{$key}: {$value}"); } } $text = $Cur[2]; $I->comment($text); $I->click(PaymentCreatePage::$ButtonCreate); $I->waitForText("Способ оплаты создан"); $I->assertEquals($SymbolCur, $text); $I->amOnPage("/admin/components/run/shop/currencies"); $I->click(CurrenciesPage::DeleteButtonLine('4')); $I->waitForElement(".//div[@class='modal hide fade in']"); $I->see('Удалить валюту'); $I->see('Удалить выбранную валюту?'); $I->see('Удалить', './/*[@id="first"]/div[3]/a[1]'); $I->see('Отменить', './/*[@id="first"]/div[3]/a[2]'); $I->click('.//*[@id="first"]/div[3]/a[1]'); $I->waitForElementVisible('.alert.in.fade.alert-error'); $I->see('Невозможно удалить валюту. Эта валюта используется в Способах оплаты.'); $I->waitForElementNotVisible('.alert.in.fade.alert-error'); $I->amOnPage('/admin/components/run/shop/paymentmethods/index'); $I->click(PaymentListPage::CheckboxLine('last()')); $I->wait('2'); $I->click(PaymentListPage::$ButtonDelete); $I->waitForElement(".//*[@id='mainContent']/div/div[1]"); $I->wait('1'); $I->click(".//*[@id='mainContent']/div/div[1]/div[3]/a[1]"); $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->see('Способ оплаты удален'); $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $I->amOnPage("/admin/components/run/shop/currencies"); $I->click(CurrenciesPage::DeleteButtonLine('4')); $I->waitForElement(".//div[@class='modal hide fade in']"); $I->see('Удалить валюту'); $I->see('Удалить выбранную валюту?'); $I->see('Удалить', './/*[@id="first"]/div[3]/a[1]'); $I->see('Отменить', './/*[@id="first"]/div[3]/a[2]'); $I->click('.//*[@id="first"]/div[3]/a[1]'); $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->see('Валюта успешно удалена'); $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $rows = $I->grabTagCount($I, "tbody tr"); for ($j = 1; $j <= $rows; $j++) { $idAfter = $I->grabTextFrom("//tbody/tr[{$j}]/td[1]"); $I->comment($idAfter); if ($idAfter == $id) { $I->fail("NOT DELETED"); break; } } InitTest::ClearAllCach($I); }
/** * @guy CurrenciesTester\CurrenciesSteps */ public function SaveAndExitButton(CurrenciesTester\CurrenciesSteps $I) { $name = "Лат"; $isocode = "лат"; $symbol = "лат"; $rate = "11111"; $I->EditCurrency($name, $isocode, $symbol, $rate, $save = 'saveexit'); $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->see('Изменения сохранены'); $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $I->waitForText('Список валют'); $I->see('Лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[2]/a'); $I->see('лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[3]'); $I->see('лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[4]'); InitTest::ClearAllCach($I); }
function DeleteCategory() { $I = $this; $I->amOnPage(\DeleteCategoryOrder::$ListURL); $I->click(\DeleteCategoryOrder::$ListHeaderCheckBox); $I->click(\DeleteCategoryOrder::$ListButtonDelete); $I->click(\DeleteCategoryOrder::$DeleteWindowButtonDelete); $I->wait('1'); \InitTest::ClearAllCach($I); }
public function CreateCallbackWithoutThemes(CallbacksTester $I) { //Проверка возможности отправки колбека без созданных тем колбеков $I->amOnPage('/'); $I->waitForText('Заказать звонок'); $I->click(CallbacksPage::$OrderCallButton); $I->waitForElement(CallbacksPage::$CallMeButton); $I->fillField(CallbacksPage::$UserNameCreate, 'www'); $I->fillField(CallbacksPage::$TelephoneCreate, '11'); $I->click(CallbacksPage::$CallMeButton); $I->waitForElementNotVisible('.//*[@id="ordercall"]'); $I->amOnPage('/admin'); $I->click('html/body/div[1]/div[3]/div/nav/ul/li[2]/a'); $I->waitForElement('html/body/div[1]/div[3]/div/nav/ul/li[2]/ul'); $I->click('html/body/div[1]/div[3]/div/nav/ul/li[2]/ul/li[5]/a'); $I->waitForElementNotVisible('html/body/div[1]/div[3]/div/nav/ul/li[2]/ul'); $I->wait('5'); $kil1 = $I->grabTextFrom('.//*[@id="totalCallbacks"]'); $I->comment($kil1); //$kil=explode(" ", $kil1); $kil = substr($kil1, 39, 41); $I->comment($kil); if ($kil <= 14) { $rowCallback = $I->grabClassCount($I, "btn btn-small btn-danger my_btn_s"); $I->comment((string) $rowCallback); $I->see('www', ".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[3]/a"); $I->see('11', ".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[4]"); $nameThemeList = $I->grabAttributeFrom(".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[5]/div/select", "selected"); $I->comment("{$nameThemeList}"); $I->assertEquals($nameThemeList, null); $I->click(".//*[@id='callbacks_all']/table/tbody/tr[last()]/td[3]/a"); $I->waitForElement('.//*[@id="editCallbackForm"]/div[5]/label'); $nameThemeEdit = $I->grabAttributeFrom('.//*[@id="editCallbackForm"]/div[1]/div/select', "selected"); $I->comment("{$nameThemeEdit}"); $I->assertEquals($nameThemeEdit, null); } else { $I->click('.//*[@id="gopages"]/div/ul/li[last()-1]/a'); $I->wait('2'); $rowCallback = $I->grabClassCount($I, "btn btn-small btn-danger my_btn_s"); $I->comment((string) $rowCallback); $I->see('www', ".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[3]/a"); $I->see('11', ".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[4]"); $nameThemeList = $I->grabAttributeFrom(".//*[@id='callbacks_all']/table/tbody/tr[{$rowCallback}]/td[5]/div/select", "selected"); $I->comment("{$nameThemeList}"); $I->assertEquals($nameThemeList, null); $I->click(".//*[@id='callbacks_all']/table/tbody/tr[last()]/td[3]/a"); $I->waitForElement('.//*[@id="editCallbackForm"]/div[5]/label'); $nameThemeEdit = $I->grabAttributeFrom('.//*[@id="editCallbackForm"]/div[1]/div/select', "selected"); $I->comment("{$nameThemeEdit}"); $I->assertEquals($nameThemeEdit, null); } InitTest::ClearAllCach($I); }
/** * @group a */ public function MessageDeletingStatusWindow(OrderStatusesTester $I) { $I->wantTo('Verify Message About Deleting Status Present.'); $I->amOnPage(OrderStatusesListPage::$ListURL); $I->click(OrderStatusesListPage::$ListButtonDelete); $I->wait(1); $I->click(OrderStatusesListPage::$DeleteButtonDelete); $I->wait(1); $I->see('Статус удален', OrderStatusesListPage::$DeleteMessageDeleting); InitTest::ClearAllCach($I); }
/** * @guy CallbacksTester\CallbacksSteps */ public function SaveAndExit(CallbacksTester\CallbacksSteps $I) { $name = 'sss'; $I->EditStatusCallback($name, $name, $save = 'saveexit'); // $I->amOnPage('/admin/components/run/shop/callbacks/statuses'); // $I->click('.//*[@id="orderStatusesList"]/section/div[2]/div/table/tbody/tr[1]/td[2]/a'); // $I->waitForText('Редактирование статуса обратного звонка'); // $I->fillField(CallbacksPage::$NameStatus, 'sss'); // $I->click(CallbacksPage::$SaveAndExitButton); // $I->waitForElementVisible('.alert.in.fade.alert-success'); // $I->see('Изменения сохранены'); // $I->waitForElementNotVisible('.alert.in.fade.alert-success'); // $I->waitForText('Статусы обратных звонков'); // $I->see('sss', './/*[@id="orderStatusesList"]/section/div[2]/div/table/tbody/tr[1]/td[2]/a'); InitTest::ClearAllCach($I); }
/** * @group a */ public function VerifyDeletingaStatusNotPresenceOrderListPage(OrderStatusesTester $I) { $I->wantTo('Verify Created Status Present on Orders List Page.'); $nameEditStatus = 'Отредактированний Статус Order'; $nameStatus = '123 Super Созданний Status Заказа 890'; $I->amOnPage(OrdersListPage::$ListURLorders); $positionsInOption = $I->grabTagCount($I, 'select option'); $I->comment("Number Rows:'{$positionsInOption}' In List Select"); if ($positionsInOption > 3) { for ($j = 1; $j <= $positionsInOption; ++$j) { $nameStSl = $I->grabTextFrom("//table/thead/tr[2]/td[3]/select/option[{$j}]"); $I->comment("In Row:'{$j}', Presence Status:'{$nameStSl}'."); } $I->dontSee('-- Все --', '//table/thead/tr[2]/td[3]/select'); } elseif ($positionsInOption == 3) { $p = $I->grabTextFrom('//table/thead/tr[2]/td[3]/select/option[1]'); $o = $I->grabTextFrom('//table/thead/tr[2]/td[3]/select/option[2]'); $k = $I->grabTextFrom('//table/thead/tr[2]/td[3]/select/option[3]'); $I->comment("In List Select Presence Defolt Statuses:'{$p},{$o},{$k}'."); } $I->dontSee($nameStatus, '//table/thead/tr[2]/td[3]/select'); $I->dontSee($nameEditStatus, '//table/thead/tr[2]/td[3]/select'); InitTest::ClearAllCach($I); }
/** * @guy CallbacksTester\CallbacksSteps */ public function Symbols256Create(CallbacksTester\CallbacksSteps $I) { $name = "12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке123456"; $name2 = "12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345"; $I->CreateStatusCallback($name, $name2); InitTest::ClearAllCach($I); }
/** * @group aaa */ public function TextDeletingNotifi(NotificationListTester $I) { $I->wantTo('Verrify presence Text Message of Deletiung Window.'); $I->amOnPage(NotificationListPage::$ListPageURL); $I->click(NotificationListPage::$ListMainCheckBox); $I->click(NotificationListPage::$ListButtonDelete); $I->wait('1'); $I->click(NotificationListPage::$DeleteWindowButtonDelete); // $I->waitForText('Удаление'); $I->wait('1'); $I->exactlySeeAlert($I, 'success', 'Удаление'); InitTest::ClearAllCach($I); }
public function DeleteAllCheckBoxButton(CallbacksTester $I) { //Удаление всех колбеков из списка $I->amOnPage('/admin/components/run/shop/callbacks'); $rowMax = 14; $kil1 = $I->grabTextFrom('.//*[@id="totalCallbacks"]'); $I->comment($kil1); $kil = substr($kil1, 39, 41); $I->comment($kil); $j = 1; $I->comment((string) $kil); $rows = $I->grabClassCount($I, "btn btn-small btn-danger my_btn_s"); $I->comment((string) $rows); if ($kil <= $rows) { $I->click('.//*[@id="callbacks_all"]/table/thead/tr/th[1]/span/span'); $I->click(CallbacksPage::$DeleteCallback); $I->waitForElement('.//div[@class="modal hide fade in"]'); $I->see('Удалить обратный(е) звонок(ки)'); $I->see('Вы действительно хотите удалить обратный(е) звонок(ки)?'); $I->see('Отменить', './/*[@id="mainContent"]/div[2]/div[3]/a[1]'); $I->see('Удалить', './/*[@id="mainContent"]/div[2]/div[3]/a[2]'); $I->click('.//*[@id="mainContent"]/div[2]/div[3]/a[2]'); $I->wait('2'); $rowsNo = $I->grabClassCount($I, "btn btn-small btn-danger my_btn_s"); $I->comment((string) $rowsNo); $I->assertEquals($rowsNo, '0'); $I->seeElement('.//*[@id="mainContent"]/div[1]/form/section/div[3]'); $I->see('Пустой список обратных звонков.'); } else { $pagAll = ceil($kil / $rowMax); $j = 1; for ($j = 1; $j <= $pagAll; $j++) { $I->click('.//*[@id="callbacks_all"]/table/thead/tr/th[1]/span/span'); $I->click(CallbacksPage::$DeleteCallback); $I->waitForElement('.//div[@class="modal hide fade in"]'); $I->see('Удалить обратный(е) звонок(ки)'); $I->see('Вы действительно хотите удалить обратный(е) звонок(ки)?'); $I->see('Отменить', './/*[@id="mainContent"]/div[2]/div[3]/a[1]'); $I->see('Удалить', './/*[@id="mainContent"]/div[2]/div[3]/a[2]'); $I->click('.//*[@id="mainContent"]/div[2]/div[3]/a[2]'); $I->wait('2'); } $rowsNo = $I->grabClassCount($I, "btn btn-small btn-danger my_btn_s"); $I->comment((string) $rowsNo); $I->assertEquals($rowsNo, '0'); $I->seeElement('.//*[@id="mainContent"]/div[1]/form/section/div[3]'); $I->see('Пустой список обратных звонков.'); } InitTest::ClearAllCach($I); }
/** * @guy CurrenciesTester\CurrenciesSteps */ public function CreateAndExitButton(CurrenciesTester\CurrenciesSteps $I) { $name = "лира"; $isocode = "лира"; $symbol = "лира"; $rate = "01030.2"; $save = "saveexit"; $I->CreateCurrency($name, $isocode, $symbol, $rate, $save); // $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->waitForText('Валюта создана'); // $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $I->waitForText('Список валют'); $name1 = "лира"; $isocode1 = "лира"; $symbol1 = "лира"; $rate1 = "1030.2000"; $I->CheckInListLanding($name1, $isocode1, $symbol1); $I->click(CurrenciesPage::CurrencyNameLine("last()")); $I->CheckInFields($name1, $isocode1, $symbol1, $rate1); InitTest::ClearAllCach($I); }
/** * @guy CallbacksTester\CallbacksSteps */ public function Symbols256Create(CallbacksTester\CallbacksSteps $I) { $name = '12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке123456'; $name1 = '12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345йцуке12345'; $I->CreateThemeCallback($name, $name1); InitTest::ClearAllCach($I); }
/** * @guy CallbacksTester\CallbacksSteps */ public function Symbols255Create(CallbacksTester\CallbacksSteps $I) { $name = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456781234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567'; $phone = '12345678901234567890123456789012345678901234567890'; $comment = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456781234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567'; $I->CreateCallback($name, $phone, $comment); $I->waitForElementNotVisible('.//*[@id="ordercall"]'); $I->CheckListLandingAndEditingPage($name, $phone, $comment); InitTest::ClearAllCach($I); }
/** * @group a */ public function DeleteNotification(NotificationListTester $I) { $I->wantTo('Verify Delete Message presence.'); $I->amOnPage(NotificationListPage::$ListPageURL); $I->click(NotificationListPage::$ListMainCheckBox); $I->waitForElementVisible(NotificationListPage::$ListButtonDelete); $I->click(NotificationListPage::$ListButtonDelete); $I->wait('1'); $I->click(NotificationListPage::$DeleteWindowButtonDelete); $I->wait('1'); InitTest::ClearAllCach($I); }
/** * @guy CallbacksTester\CallbacksSteps */ public function SaveAndExitButton(CallbacksTester\CallbacksSteps $I) { $name = 'www'; $I->EditThemeCallback($name, $name, $save = 'saveexit'); InitTest::ClearAllCach($I); }
/** * @group a */ public function DELETING(NotificationStatusesTester $I) { $I->wantTo('Verify Delete and Not Present Status.'); $I->amOnPage(NotificationStatusesPage::$ListPageURL); $I->click(NotificationStatusesPage::$ListHeaderCheckBox); $I->click(NotificationStatusesPage::$ListCheckBoxFirst); $I->click(NotificationStatusesPage::$ListCheckBoxSecond); $I->click(NotificationStatusesPage::$ListButtonDelete); $I->wait('1'); $I->click(NotificationStatusesPage::$DeleteWindowButtonDelete); $I->wait('1'); $I->dontSee(InitTest::$textSymbols); InitTest::ClearAllCach($I); }
/** * @group a * @guy OrdersTester\OrdersSteps */ public function AddBasketProductAmountYes(OrdersTester\OrdersSteps $I) { $I->wantTo('Verify Add To Basket Product Whith Zero Amount.'); $I->createProduct($nameProduct = 'Товарчик с нулевым складеке Yes.', $nameVariantProduct = NULL, $priceProduct = 1, $articleProduct = NULL, $amountProduct = 0, $categoryProduct = CreateCategoryOrdersPage::$CrtCatName1ForSearch); $I->SearchProductNameSelect($typeCategoryName = CreateCategoryOrdersPage::$CrtCatName1ForSearch, $typeProductName = $nameProduct); $I->click(\CreateOrderAdminPage::$CrtPButtAddToCart); $I->SearchProductInBascket($name = $nameProduct, $variant = $nameVariantProduct, $Price = '1', $totalPrice = '1', $Check = '1'); InitTest::ClearAllCach($I); }
/** * @group a */ public function DeleteNotification(NotificationStatusesTester $I) { $I->wantTo('Deleted Notification.'); $I->amOnPage(NotificationListPage::$ListPageURL); $I->click(NotificationListPage::$ListMainCheckBox); $I->click(NotificationListPage::$ListButtonDelete); $I->wait('1'); $I->click(NotificationListPage::$DeleteWindowButtonDelete); $I->wait('1'); InitTest::ClearAllCach($I); }
/** * @group a */ public function TextDeletingNotifi(NotificationListTester $I) { $I->wantTo('Verify Deleting Notifi.'); $I->amOnPage(NotificationListPage::$ListPageURL); $I->wait('1'); $I->click(NotificationListPage::$ListMainCheckBox); $I->click(NotificationListPage::$ListButtonDelete); $I->wait('1'); $I->click(NotificationListPage::$DeleteWindowButtonDelete); $I->wait('1'); InitTest::ClearAllCach($I); }
/** * @group a */ public function VerifyTextMessageDeletingStatus(NotificationStatusesTester $I) { $I->wantTo('Verify Message About Deleting Status Present.'); $I->amOnPage(NotificationStatusesPage::$ListPageURL); $I->waitForElement(NotificationStatusesPage::$ListHeaderCheckBox); $I->click(NotificationStatusesPage::$ListHeaderCheckBox); $I->click(NotificationStatusesPage::$ListCheckBoxFirst); $I->click(NotificationStatusesPage::$ListCheckBoxSecond); $I->click(NotificationStatusesPage::$ListButtonDelete); $I->wait(1); $I->click(NotificationStatusesPage::$DeleteWindowButtonDelete); $I->waitForText('Статус удален'); InitTest::ClearAllCach($I); }