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 --- .../features/protected/pages/I18N/BasicI18N.php | 10 +++++----- tests/FunctionalTests/features/tests/MyTestCase.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/FunctionalTests/features') diff --git a/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php index 5292affb..697fb84a 100755 --- a/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php +++ b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php @@ -33,12 +33,12 @@ class BasicI18NTestCase extends PradoGenericSelenium2Test function testI18N() { $this->assertEquals("Basic I18N Test", $this->title()); - $this->assertContains("Hello", $this->source()); + $this->assertSourceContains("Hello"); $this->assertContains("US$10,000.00", $this->source()); - $this->assertContains("2006年1月15日 上午12时00分00秒", $this->source()); - $this->assertContains("None", $this->source()); - $this->assertContains("One thing.", $this->source()); - $this->assertContains("Many things.", $this->source()); + $this->assertSourceContains("2006年1月15日 上午12时00分00秒"); + $this->assertSourceContains("None"); + $this->assertSourceContains("One thing."); + $this->assertSourceContains("Many things."); } } */ \ No newline at end of file diff --git a/tests/FunctionalTests/features/tests/MyTestCase.php b/tests/FunctionalTests/features/tests/MyTestCase.php index d748b6b0..870d2684 100755 --- a/tests/FunctionalTests/features/tests/MyTestCase.php +++ b/tests/FunctionalTests/features/tests/MyTestCase.php @@ -5,6 +5,6 @@ class MyTestCase extends PradoGenericSelenium2Test function test1() { $this->url('http://127.0.0.1'); - $this->assertNotContains('asd', $this->source()); + $this->assertSourceNotContains('asd'); } } -- cgit v1.2.3