For now I'll comment the unneeded test (that last one check all that).
This commit is contained in:
parent
4bda58ae44
commit
9ef3879e97
|
@ -111,32 +111,32 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
|
||||||
return mb_detect_encoding($string) . "X" . $ascii;
|
return mb_detect_encoding($string) . "X" . $ascii;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTitle()
|
// public function testTitle()
|
||||||
{
|
// {
|
||||||
$driver = $this;
|
// $driver = $this;
|
||||||
$title_test = function($value) use ($driver) {
|
// $title_test = function($value) use ($driver) {
|
||||||
$text = $driver->byXPath('//h1')->text ();
|
// $text = $driver->byXPath('//h1')->text ();
|
||||||
return $text == $value;
|
// return $text == $value;
|
||||||
};
|
// };
|
||||||
|
|
||||||
$author = $this->byXPath ('//h2[contains(text(), "Authors")]');
|
// $author = $this->byXPath ('//h2[contains(text(), "Authors")]');
|
||||||
$author->click ();
|
// $author->click ();
|
||||||
|
|
||||||
$this->spinAssert("Author Title", $title_test, [ "AUTHORS" ]);
|
// $this->spinAssert("Author Title", $title_test, [ "AUTHORS" ]);
|
||||||
}
|
// }
|
||||||
|
|
||||||
public function testCog()
|
// public function testCog()
|
||||||
{
|
// {
|
||||||
$cog = $this->byId ("searchImage");
|
// $cog = $this->byId ("searchImage");
|
||||||
|
|
||||||
$search = $this->byName ("query");
|
// $search = $this->byName ("query");
|
||||||
$this->assertFalse ($search->displayed ());
|
// $this->assertFalse ($search->displayed ());
|
||||||
|
|
||||||
$cog->click ();
|
// $cog->click ();
|
||||||
|
|
||||||
$search = $this->byName ("query");
|
// $search = $this->byName ("query");
|
||||||
$this->assertTrue ($search->displayed ());
|
// $this->assertTrue ($search->displayed ());
|
||||||
}
|
// }
|
||||||
|
|
||||||
public function testFilter()
|
public function testFilter()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue