yii2-netdisk/tests/acceptance/HomeCest.php
Елисеев Дмитрий 3971d0bb3a Fixed acceptance HomeCest (#91)
2016-10-19 16:42:29 +03:00

18 lines
392 B
PHP

<?php
use yii\helpers\Url as Url;
class HomeCest
{
public function ensureThatHomePageWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/index'));
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
$I->wait(2); // wait for page to be opened
$I->see('This is the About page.');
}
}