public function checkOpen(FunctionalTester $I) { $I->amOnPage(\Yii::$app->homeUrl); $I->see('My Company'); $I->seeLink('About'); $I->click('About'); $I->see('This is the About page.'); }
public function checkValidLogin(FunctionalTester $I) { $I->submitForm('#login-form', $this->formParams('erau', 'password_0')); $I->see('Logout (erau)', 'form button[type=submit]'); $I->dontSeeLink('Login'); $I->dontSeeLink('Signup'); }
public function checkOpen(FunctionalTester $I) { $I->amOnPage(\Yii::$app->homeUrl); $I->see('YarCode'); $I->seeLink('Home'); $I->seeLink('Login'); }
public function checkValidLogin(FunctionalTester $I) { $I->submitForm('#login-form', $this->formParams('okirlin', 'password_0')); $I->see('okirlin'); $I->seeLink('Logout', '/site/logout'); $I->dontSeeLink('Login'); $I->dontSeeLink('Signup'); }
public function checkAbout(FunctionalTester $I) { $I->amOnRoute('site/about'); $I->see('About', 'h1'); }
public function signupSuccessfully(FunctionalTester $I) { $I->submitForm($this->formId, ['SignupForm[username]' => 'tester', 'SignupForm[email]' => '*****@*****.**', 'SignupForm[password]' => 'tester_password']); $I->seeRecord('common\\models\\User', ['username' => 'tester', 'email' => '*****@*****.**']); $I->see('Logout (tester)', 'form button[type=submit]'); }
public function checkContactSubmitCorrectData(FunctionalTester $I) { $I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => '*****@*****.**', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']); $I->seeEmailIsSent(); $I->see('Thank you for contacting us. We will respond to you as soon as possible.'); }