Drupal investigation

HomeCest.php 392B

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