summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-08-06 18:12:45 +0200
committerDavid <ottodavid@gmx.net>2015-08-06 18:14:04 +0200
commitbdfd9f07f17de1751a7e4d94940acb426af4be77 (patch)
tree093d0e40504e0ece761733780934e0d6f09888fe /tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
index 9e537abd..f23a0174 100755
--- a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
+++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php
@@ -9,18 +9,18 @@ class QuickstartActiveCheckBoxTestCase extends PradoGenericSelenium2Test
$this->assertEquals("PRADO QuickStart Sample", $this->title());
- $this->assertContains('TActiveCheckBox Samples (AJAX)', $this->source());
+ $this->assertSourceContains('TActiveCheckBox Samples (AJAX)');
// an auto postback checkbox
- $this->assertNotContains("ctl0_body_ctl0 clicked using callback", $this->source());
+ $this->assertSourceNotContains("ctl0_body_ctl0 clicked using callback");
$this->byXPath("//input[@name='ctl0\$body\$ctl0']")->click();
$this->pause(800);
$this->assertTrue($this->byXPath("//input[@name='ctl0\$body\$ctl0']")->selected());
- $this->assertContains("ctl0_body_ctl0 clicked using callback", $this->source());
+ $this->assertSourceContains("ctl0_body_ctl0 clicked using callback");
$this->byXPath("//input[@name='ctl0\$body\$ctl0']")->click();
$this->pause(800);
- $this->assertContains("ctl0_body_ctl0 clicked using callback", $this->source());
+ $this->assertSourceContains("ctl0_body_ctl0 clicked using callback");
$this->assertFalse($this->byXPath("//input[@name='ctl0\$body\$ctl0']")->selected());
// a checkbox causing validation on a textbox
@@ -33,7 +33,7 @@ class QuickstartActiveCheckBoxTestCase extends PradoGenericSelenium2Test
$this->byXPath("//input[@name='ctl0\$body\$ctl2']")->click();
$this->pause(800);
$this->assertNotVisible('ctl0_body_ctl1');
- $this->assertContains("ctl0_body_ctl2 clicked using callback", $this->source());
+ $this->assertSourceContains("ctl0_body_ctl2 clicked using callback");
// a checkbox validated by a required field validator
$this->assertFalse($this->byXPath("//input[@name='ctl0\$body\$CheckBox']")->selected());
@@ -45,7 +45,7 @@ class QuickstartActiveCheckBoxTestCase extends PradoGenericSelenium2Test
$this->byXPath("//input[@type='submit' and @value='Submit']")->click();
$this->pause(800);
$this->assertNotVisible('ctl0_body_ctl4');
- $this->assertContains("ctl0_body_CheckBox clicked", $this->source());
+ $this->assertSourceContains("ctl0_body_CheckBox clicked");
// a checkbox validated by a required field validator using AutoPostBack
$this->assertTrue($this->byXPath("//input[@name='ctl0\$body\$CheckBox2']")->selected());