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 --- .../quickstart/Controls/DataList1TestCase.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/FunctionalTests/quickstart/Controls/DataList1TestCase.php') diff --git a/tests/FunctionalTests/quickstart/Controls/DataList1TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataList1TestCase.php index 436af2ad..10786e7d 100755 --- a/tests/FunctionalTests/quickstart/Controls/DataList1TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/DataList1TestCase.php @@ -7,15 +7,15 @@ class QuickstartDataList1TestCase extends PradoGenericSelenium2Test $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample1&notheme=true&lang=en"); // verify if all required texts are present - $this->assertContains('ITN001', $this->source()); - $this->assertContains('$100', $this->source()); - $this->assertContains('Motherboard', $this->source()); - $this->assertContains('ITN018', $this->source()); - $this->assertContains('Surge protector', $this->source()); - $this->assertContains('45', $this->source()); - $this->assertContains('$15', $this->source()); - $this->assertContains('Total 19 products.', $this->source()); - $this->assertContains('Computer Parts', $this->source()); + $this->assertSourceContains('ITN001'); + $this->assertSourceContains('$100'); + $this->assertSourceContains('Motherboard'); + $this->assertSourceContains('ITN018'); + $this->assertSourceContains('Surge protector'); + $this->assertSourceContains('45'); + $this->assertSourceContains('$15'); + $this->assertSourceContains('Total 19 products.'); + $this->assertSourceContains('Computer Parts'); // verify specific table tags $this->assertElementPresent("ctl0_body_DataList"); -- cgit v1.2.3