22 lines
428 B
PHP
22 lines
428 B
PHP
<?php
|
|
|
|
namespace frontend\tests\acceptance;
|
|
|
|
use frontend\tests\AcceptanceTester;
|
|
use yii\helpers\Url;
|
|
|
|
class HomeCest
|
|
{
|
|
public function checkHome(AcceptanceTester $I)
|
|
{
|
|
$I->amOnRoute(Url::toRoute('/site/index'));
|
|
$I->see('My Application');
|
|
|
|
$I->seeLink('About');
|
|
$I->click('About');
|
|
$I->wait(2); // wait for page to be opened
|
|
|
|
$I->see('This is the About page.');
|
|
}
|
|
}
|