%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/tests/codeception/_pages/
Upload File :
Create Path :
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/tests/codeception/_pages/LoginPage.php

<?php

namespace tests\codeception\_pages;

use tests\codeception\_support\BasePage;

/**
 * Represents login page
 * @property \AcceptanceTester|\FunctionalTester $actor
 */
class LoginPage extends BasePage
{

    public $route = 'user/auth/login';

    /**
     * @param string $username
     * @param string $password
     */
    public function login($username, $password)
    {
        if(method_exists($this->actor, 'waitForText')) {
            $this->actor->waitForText('Please sign in');
        }
        $this->actor->fillField('Login[username]', $username);
        $this->actor->fillField('Login[password]', $password);
        $this->actor->click('#login-button');
    }

    public function selfInvite($email)
    {
        $this->actor->fillField('Invite[email]', $email);
        $this->actor->submitForm('#invite-form', ['Invite' => [
            'email' => $email
       ]]);
    }

}

Zerion Mini Shell 1.0