Exemplo n.º 1
0
 /**
  * @param AcceptanceTester $I
  */
 public function testSearch(AcceptanceTester $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');
 }