summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.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/Wizard3TestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php b/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php
index 2568f233..9c602b09 100755
--- a/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php
@@ -9,36 +9,43 @@ class QuickstartWizard3TestCase extends PradoGenericSelenium2Test
$this->assertEquals("PRADO QuickStart Sample", $this->title());
// step 1
- $this->assertContains('A Mini Survey', $this->source());
- $this->assertContains('PRADO QuickStart Sample', $this->source());
+ $this->assertSourceContains('A Mini Survey');
+ $this->assertSourceContains('PRADO QuickStart Sample');
$this->byId('ctl0_body_Wizard3_StudentCheckBox')->click();
+ $this->pause(50);
$this->byName('ctl0$body$Wizard3$ctl4$ctl0')->click();
+ $this->pause(50);
// step 2
$this->select('ctl0$body$Wizard3$DropDownList11', "Chemistry");
+ $this->pause(50);
$this->byName('ctl0$body$Wizard3$ctl5$ctl1')->click();
+ $this->pause(50);
// step 3
$this->select('ctl0$body$Wizard3$DropDownList22', "Tennis");
+ $this->pause(50);
$this->byName('ctl0$body$Wizard3$ctl6$ctl1')->click();
// step 4
- $this->assertContains('You are a college student', $this->source());
- $this->assertContains('You are in major: Chemistry', $this->source());
- $this->assertContains('Your favorite sport is: Tennis', $this->source());
+ $this->assertSourceContains('You are a college student');
+ $this->assertSourceContains('You are in major: Chemistry');
+ $this->assertSourceContains('Your favorite sport is: Tennis');
// run the example again. this time we skip the page asking about major
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TWizard.Sample3&amp;notheme=true");
// step 1
$this->byName('ctl0$body$Wizard3$ctl4$ctl0')->click();
+ $this->pause(50);
// step 3
$this->select('ctl0$body$Wizard3$DropDownList22', "Baseball");
+ $this->pause(50);
$this->byName('ctl0$body$Wizard3$ctl6$ctl1')->click();
// step 4
- $this->assertNotContains('You are a college student', $this->source());
- $this->assertContains('Your favorite sport is: Baseball', $this->source());
+ $this->assertSourceNotContains('You are a college student');
+ $this->assertSourceContains('Your favorite sport is: Baseball');
}
}