Replace keys by setting value
This commit is contained in:
parent
d2ab76b23f
commit
73e05fc96b
|
@ -181,7 +181,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
|
||||||
$filtered = $this->elements ($this->using('css selector')->value('*[class="books"]'));
|
$filtered = $this->elements ($this->using('css selector')->value('*[class="books"]'));
|
||||||
$this->assertEquals (13, count($filtered));
|
$this->assertEquals (13, count($filtered));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function normalSearch ($src, $out)
|
public function normalSearch ($src, $out)
|
||||||
{
|
{
|
||||||
$driver = $this;
|
$driver = $this;
|
||||||
|
@ -198,7 +198,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
|
||||||
// Focus the input and type
|
// Focus the input and type
|
||||||
$queryInput = $this->byName ("query");
|
$queryInput = $this->byName ("query");
|
||||||
$queryInput->click ();
|
$queryInput->click ();
|
||||||
$this->keys($src);
|
$queryInput->value ($src);
|
||||||
$queryInput->submit ();
|
$queryInput->submit ();
|
||||||
|
|
||||||
$this->spinAssert("Home Title", $title_test, [ "SEARCH RESULT FOR *" . $out . "*" ]);
|
$this->spinAssert("Home Title", $title_test, [ "SEARCH RESULT FOR *" . $out . "*" ]);
|
||||||
|
@ -207,7 +207,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
|
||||||
public function testSearchWithoutAccentuatedCharacters()
|
public function testSearchWithoutAccentuatedCharacters()
|
||||||
{
|
{
|
||||||
$this->normalSearch ("ali", "ALI");
|
$this->normalSearch ("ali", "ALI");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSearchWithAccentuatedCharacters()
|
public function testSearchWithAccentuatedCharacters()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue