summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/ActiveControls
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
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/ActiveControls')
-rwxr-xr-xtests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php2
-rwxr-xr-xtests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php12
-rwxr-xr-xtests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php
index 9d816978..dc04fe91 100755
--- a/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php
+++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php
@@ -8,7 +8,7 @@ class QuickstartActiveButtonTestCase extends PradoGenericSelenium2Test
$this->assertEquals("PRADO QuickStart Sample", $this->title());
- $this->assertContains('TActiveButton Samples (AJAX)', $this->source());
+ $this->assertSourceContains('TActiveButton Samples (AJAX)');
// a click button
$this->assertElementNotPresent("//input[@type='submit' and @value=\"I'm clicked\"]");
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());
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php
index 7cb29382..3b0115dd 100755
--- a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php
+++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php
@@ -8,7 +8,7 @@ class QuickstartActiveCustomValidatorTestCase extends PradoGenericSelenium2Test
$this->assertEquals("PRADO QuickStart Sample", $this->title());
- $this->assertContains('TActiveCustomValidator Samples (AJAX)', $this->source());
+ $this->assertSourceContains('TActiveCustomValidator Samples (AJAX)');
$base = 'ctl0_body_';