yii2-netdisk/tests/acceptance/HomeCest.php

18 lines
392 B
PHP
Raw Normal View History

2016-07-15 00:20:28 +08:00
<?php
use yii\helpers\Url as Url;
2016-07-15 00:20:28 +08:00
class HomeCest
{
public function ensureThatHomePageWorks(AcceptanceTester $I)
{
$I->amOnPage(Url::toRoute('/site/index'));
2016-07-15 00:20:28 +08:00
$I->see('My Company');
$I->seeLink('About');
$I->click('About');
2016-10-19 21:42:29 +08:00
$I->wait(2); // wait for page to be opened
2016-07-15 00:20:28 +08:00
$I->see('This is the About page.');
}
}