/** * @guy CallbacksTester\CallbacksSteps */ public function Symbols128Create(CallbacksTester\CallbacksSteps $I) { $name = '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678'; $phone = '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678'; $comment = '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678'; $I->CreateCallback($name, $phone, $comment); $I->waitForElement('.//*[@id="data-callback"]/label[2]/span[2]/label'); $I->see('Поле Телефон не может превышать 50 символов в длину.', './/*[@id="data-callback"]/label[2]/span[2]/label'); $phone1 = '12345678901234567890123456789012345678901234567890'; $I->fillField(CallbacksPage::$TelephoneCreate, "{$phone1}"); $I->click(CallbacksPage::$CallMeButton); $I->waitForElementNotVisible('.//*[@id="ordercall"]'); $I->CheckListLandingAndEditingPage($name, $phone1, $comment); InitTest::ClearAllCach($I); }
/** * @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); }