From bdfd9f07f17de1751a7e4d94940acb426af4be77 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 6 Aug 2015 18:12:45 +0200 Subject: Fix tests work around stale references by explicitly waiting --- tests/FunctionalTests/quickstart/Controls/ImageTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/FunctionalTests/quickstart/Controls/ImageTestCase.php') diff --git a/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php b/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php index f3bd4775..9becc9f4 100755 --- a/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php @@ -11,7 +11,7 @@ class QuickstartImageTestCase extends PradoGenericSelenium2Test //$this->assertElementPresent("//img[contains(@src,'/hello_world.gif') and @alt='']"); $this->assertElementPresent("//img[contains(@src,'/hello_world.gif') and @alt='Hello World!']"); - $this->assertContains("Hello World! Hello World! Hello World!", $this->source()); + $this->assertSourceContains("Hello World! Hello World! Hello World!"); //$this->assertElementPresent("//img[contains(@src,'/hello_world.gif') and @align='baseline']"); //$this->assertElementPresent("//img[contains(@src,'/hello_world.gif') and contains(@longdesc,'HelloWorld.html')]"); } -- cgit v1.2.3