2016-07-15 00:20:28 +08:00
|
|
|
<?php
|
2017-09-12 17:29:58 +08:00
|
|
|
|
|
|
|
use yii\helpers\Url;
|
2016-07-15 00:20:28 +08:00
|
|
|
|
|
|
|
class HomeCest
|
|
|
|
{
|
|
|
|
public function ensureThatHomePageWorks(AcceptanceTester $I)
|
|
|
|
{
|
2016-08-04 19:32:04 +08:00
|
|
|
$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.');
|
|
|
|
}
|
|
|
|
}
|