Beispiel #1
0
 /**
  * @param FunctionalTester $I
  */
 public function testSearch(FunctionalTester $I)
 {
     $I->wantTo('ensure that search page works');
     $I->amOnPage(\Yii::$app->homeUrl);
     $I->submitForm('#sidebar .form-search', ['s' => 'test12345qwerty']);
     if (method_exists($I, 'wait')) {
         $I->wait(3);
     }
     $I->see('Not Found (#404)', 'h1');
     $I->submitForm('#sidebar .form-search', ['s' => 'sample post']);
     if (method_exists($I, 'wait')) {
         $I->wait(3);
     }
     $I->seeLink('Sample Post');
 }