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/LabelTestCase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/FunctionalTests/quickstart/Controls/LabelTestCase.php') diff --git a/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php b/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php index a9aa0bbe..f23ba586 100755 --- a/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php @@ -7,10 +7,10 @@ class QuickstartLabelTestCase extends PradoGenericSelenium2Test { $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TLabel.Home&notheme=true&lang=en"); $this->assertEquals("PRADO QuickStart Sample", $this->title()); - $this->assertContains("This is a label with customized color and font.", $this->source()); - $this->assertContains("This is a form label associated with the TTextBox control below", $this->source()); - $this->assertContains("This is a label with empty Text property and nonempty body", $this->source()); - $this->assertContains("This is a disabled label", $this->source()); + $this->assertSourceContains("This is a label with customized color and font."); + $this->assertSourceContains("This is a form label associated with the TTextBox control below"); + $this->assertSourceContains("This is a label with empty Text property and nonempty body"); + $this->assertSourceContains("This is a disabled label"); $this->assertAttribute("ctl0_body_Label2@disabled","regexp:true|disabled"); -- cgit v1.2.3