Blame view

tests/codeception/frontend/functional/HomeCept.php 376 Bytes
4ca21c3e   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  namespace tests\codeception\frontend\functional;
  
  use Yii;
  use tests\codeception\frontend\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.');