Inheritance: extends Codeception\Actor, use trait _generated\FunctionalTesterActions
Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 public function checkOpen(FunctionalTester $I)
 {
     $I->amOnPage(\Yii::$app->homeUrl);
     $I->see('YarCode');
     $I->seeLink('Home');
     $I->seeLink('Login');
 }
Exemplo n.º 3
0
 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');
 }
Exemplo n.º 4
0
 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.');
 }
Exemplo n.º 5
0
 public function checkAbout(FunctionalTester $I)
 {
     $I->amOnRoute('site/about');
     $I->see('About', 'h1');
 }
Exemplo n.º 6
0
 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]');
 }
Exemplo n.º 7
0
 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.');
 }