Browse Source

Replace keys by setting value

master
Sébastien Lucas 10 years ago
parent
commit
73e05fc96b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/Sauce.php

+ 3
- 3
test/Sauce.php View File

@@ -181,7 +181,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
$filtered = $this->elements ($this->using('css selector')->value('*[class="books"]'));
$this->assertEquals (13, count($filtered));
}
public function normalSearch ($src, $out)
{
$driver = $this;
@@ -198,7 +198,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
// Focus the input and type
$queryInput = $this->byName ("query");
$queryInput->click ();
$this->keys($src);
$queryInput->value ($src);
$queryInput->submit ();

$this->spinAssert("Home Title", $title_test, [ "SEARCH RESULT FOR *" . $out . "*" ]);
@@ -207,7 +207,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
public function testSearchWithoutAccentuatedCharacters()
{
$this->normalSearch ("ali", "ALI");
}
}

public function testSearchWithAccentuatedCharacters()
{


Loading…
Cancel
Save