Disable client side rendering with sauce. Enable all tests.

This commit is contained in:
Sébastien Lucas 2013-11-28 18:25:19 +01:00
parent 834ad620f6
commit 9fc3706209
2 changed files with 49 additions and 51 deletions

View file

@ -5,22 +5,22 @@ require_once 'vendor/autoload.php';
class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
{ {
public static $browsers = array( public static $browsers = array(
// // run FF15 on Windows 8 on Sauce // run FF15 on Windows 8 on Sauce
// array( array(
// 'browserName' => 'firefox', 'browserName' => 'firefox',
// 'desiredCapabilities' => array( 'desiredCapabilities' => array(
// 'version' => '15', 'version' => '15',
// 'platform' => 'Windows 2012', 'platform' => 'Windows 2012',
// ) )
// ), ),
// // run IE9 on Windows 7 on Sauce // run IE9 on Windows 7 on Sauce
// array( array(
// 'browserName' => 'internet explorer', 'browserName' => 'internet explorer',
// 'desiredCapabilities' => array( 'desiredCapabilities' => array(
// 'version' => '9', 'version' => '9',
// 'platform' => 'Windows 7', 'platform' => 'Windows 7',
// ) )
// ), ),
// run IE10 on Windows 8 on Sauce // run IE10 on Windows 8 on Sauce
array( array(
'browserName' => 'internet explorer', 'browserName' => 'internet explorer',
@ -28,33 +28,33 @@ class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
'version' => '10', 'version' => '10',
'platform' => 'Windows 8', 'platform' => 'Windows 8',
) )
),
// run Opera 12 on Windows 7 on Sauce
array(
'browserName' => 'opera',
'desiredCapabilities' => array(
'version' => '12',
'platform' => 'Windows 7',
) )
// // run Opera 12 on Windows 7 on Sauce ),
// array( // run Mobile Safari on iOS
// 'browserName' => 'opera', array(
// 'desiredCapabilities' => array( 'browserName' => '',
// 'version' => '12', 'desiredCapabilities' => array(
// 'platform' => 'Windows 7', 'app' => 'safari',
// ) 'device' => 'iPhone Simulator',
// ), 'version' => '6.1',
// // run Mobile Safari on iOS 'platform' => 'Mac 10.8',
// array( )
// 'browserName' => '', ),
// 'desiredCapabilities' => array(
// 'app' => 'safari',
// 'device' => 'iPhone Simulator',
// 'version' => '6.1',
// 'platform' => 'Mac 10.8',
// )
// ),
// run Chrome on Linux on Sauce // run Chrome on Linux on Sauce
// array( array(
// 'browserName' => 'chrome', 'browserName' => 'chrome',
// 'desiredCapabilities' => array( 'desiredCapabilities' => array(
// 'version' => '30', 'version' => '30',
// 'platform' => 'Linux' 'platform' => 'Linux'
// ) )
// ) )
// run Mobile Browser on Android // run Mobile Browser on Android
// array( // array(
// 'browserName' => 'Android', // 'browserName' => 'Android',
@ -107,9 +107,8 @@ class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
return $text == $value; return $text == $value;
}; };
//sleep(10);
$this->spinAssert("Home Title", $title_test, [ "COPS" ], 25); $this->spinAssert("Home Title", $title_test, [ "COPS" ]);
$author = $this->byXPath ('//h2[contains(text(), "Authors")]'); $author = $this->byXPath ('//h2[contains(text(), "Authors")]');
$author->click (); $author->click ();
@ -124,13 +123,12 @@ class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
// catch (Exception $e) { // catch (Exception $e) {
// } // }
$search = $this->byName ("query"); // $search = $this->byName ("query");
$this->assertFalse ($search->displayed ()); // $this->assertFalse ($search->displayed ());
$cog->click (); // $cog->click ();
//$this->implicitWait(2000);
$search = $this->byName ("query"); // $search = $this->byName ("query");
$this->assertTrue ($search->displayed ()); // $this->assertTrue ($search->displayed ());
} }
} }

View file

@ -14,4 +14,4 @@
*/ */
$config['cops_title_default'] = "COPS"; $config['cops_title_default'] = "COPS";
$config['cops_server_side_render'] = "Kindle|EBRD1101|EBRD1201|cybook|MSIE"; $config['cops_server_side_render'] = ".";