yii2-netdisk/tests/acceptance/HomeCest.php

19 lines
386 B
PHP
Raw Permalink Normal View History

2016-07-15 00:20:28 +08:00
<?php
use yii\helpers\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.');
}
}