diff options
author | David <ottodavid@gmx.net> | 2015-08-06 18:12:45 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2015-08-06 18:14:04 +0200 |
commit | bdfd9f07f17de1751a7e4d94940acb426af4be77 (patch) | |
tree | 093d0e40504e0ece761733780934e0d6f09888fe /tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php | |
parent | 1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff) |
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php index d7a5ebec..091b3db8 100755 --- a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php @@ -13,11 +13,12 @@ class QuickstartMultiViewTestCase extends PradoGenericSelenium2Test $this->assertElementNotPresent('ctl0_body_Result2'); $this->type('ctl0_body_Memo','test'); $this->byName('ctl0$body$ctl0')->click(); // view 2 to select the dropdown + $this->pause(50); $this->byName('ctl0$body$ctl4')->click(); // view 3 : check if the output is updated - $this->assertContains('Your text input is: test', $this->source()); - $this->assertContains('Your color choice is: Red', $this->source()); + $this->assertSourceContains('Your text input is: test'); + $this->assertSourceContains('Your color choice is: Red'); $this->byName('ctl0$body$ctl7')->click(); // view 2 : update dropdownlist @@ -27,8 +28,8 @@ class QuickstartMultiViewTestCase extends PradoGenericSelenium2Test $this->byName('ctl0$body$ctl4')->click(); // view 3 : check if the output is updated - $this->assertContains('Your text input is: test', $this->source()); - $this->assertContains('Your color choice is: Blue', $this->source()); + $this->assertSourceContains('Your text input is: test'); + $this->assertSourceContains('Your color choice is: Blue'); $this->byName('ctl0$body$ctl7')->click(); // view 2 : check if dropdownlist maintains state |