<?php use tests\codeception\app\FunctionalTester; /* @var $scenario Codeception\Scenario */ $I = new FunctionalTester($scenario); $I->wantTo('ensure that home page works'); $I->amOnPage(Yii::$app->homeUrl); $I->see('My Company'); $I->seeLink('About'); $I->click('About'); $I->see('This is the About page.');
<?php use tests\codeception\app\FunctionalTester; $I = new FunctionalTester($scenario); $I->wantTo('ensure that home page works'); $I->amOnPage(Yii::$app->urlManager->createUrl('main/pages/index')); $I->see('RzWebSys7'); $I->seeLink('Главная');