summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.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/Controls/RadioButtonTestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php b/tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php
index 214b1596..7dfff756 100755
--- a/tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/RadioButtonTestCase.php
@@ -15,11 +15,11 @@ class QuickstartRadioButtonTestCase extends PradoGenericSelenium2Test
$this->byXPath("//input[@name='ctl0\$body\$ctl1' and @value='value']")->click();
// an auto postback radiobutton
- $this->assertNotContains("I'm clicked", $this->source());
+ $this->assertSourceNotContains("I'm clicked");
$this->byXPath("//input[@name='ctl0\$body\$ctl2' and @value='ctl0\$body\$ctl2']")->click();
- $this->assertContains("I'm clicked", $this->source());
+ $this->assertSourceContains("I'm clicked");
$this->byXPath("//input[@name='ctl0\$body\$ctl2' and @value='ctl0\$body\$ctl2']")->click();
- $this->assertContains("I'm clicked", $this->source());
+ $this->assertSourceContains("I'm clicked");
// a radiobutton causing validation on a textbox
$this->assertNotVisible('ctl0_body_ctl3');
@@ -27,7 +27,7 @@ class QuickstartRadioButtonTestCase extends PradoGenericSelenium2Test
$this->pause(1000);
$this->assertVisible('ctl0_body_ctl3');
$this->byXPath("//input[@name='ctl0\$body\$ctl4' and @value='ctl0\$body\$ctl4']")->click();
- $this->pause(1000);
+ $this->pause(500);
$this->assertVisible('ctl0_body_ctl3');
$this->type("ctl0\$body\$TextBox", "test");
$this->byXPath("//input[@name='ctl0\$body\$ctl4' and @value='ctl0\$body\$ctl4']")->click();
@@ -44,13 +44,13 @@ class QuickstartRadioButtonTestCase extends PradoGenericSelenium2Test
// a radiobutton group
$this->byName("ctl0\$body\$ctl7")->click();
- $this->assertContains("Your selection is empty", $this->source());
+ $this->assertSourceContains("Your selection is empty");
$this->byXPath("//input[@name='ctl0\$body\$RadioGroup' and @value='ctl0\$body\$Radio2']")->click();
$this->byName("ctl0\$body\$ctl7")->click();
- $this->assertContains("Your selection is 2", $this->source());
+ $this->assertSourceContains("Your selection is 2");
$this->byXPath("//input[@name='ctl0\$body\$RadioGroup' and @value='ctl0\$body\$Radio3']")->click();
$this->byXPath("//input[@name='ctl0\$body\$Radio4' and @value='ctl0\$body\$Radio4']")->click();
$this->byName("ctl0\$body\$ctl7")->click();
- $this->assertContains("Your selection is 34", $this->source());
+ $this->assertSourceContains("Your selection is 34");
}
}