0
0

HomeCest.php 426 B

1234567891011121314151617181920
  1. <?php
  2. namespace frontend\tests\acceptance;
  3. use frontend\tests\AcceptanceTester;
  4. use yii\helpers\Url;
  5. class HomeCest
  6. {
  7. public function checkHome(AcceptanceTester $I)
  8. {
  9. $I->amOnPage(Url::toRoute('/site/index'));
  10. $I->see('My Application');
  11. $I->seeLink('About');
  12. $I->click('About');
  13. $I->wait(2); // wait for page to be opened
  14. $I->see('This is the About page.');
  15. }
  16. }