summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.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/active-controls/tests/CallbackAdapterTestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php')
-rwxr-xr-xtests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php
index d5d112d8..9f825e09 100755
--- a/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php
+++ b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php
@@ -6,9 +6,10 @@ class CallbackAdapterTestCase extends PradoGenericSelenium2Test
{
$base='ctl0_Content_';
$this->url("active-controls/index.php?page=ControlAdapterTest");
- $this->assertContains('Control Adapter - State Tracking Tests', $this->source());
+ $this->assertSourceContains('Control Adapter - State Tracking Tests');
$this->byId("{$base}button2")->click();
+ $this->pause(50);
$this->assertEquals('ok', $this->alertText());
$this->acceptAlert();
@@ -22,10 +23,12 @@ class CallbackAdapterTestCase extends PradoGenericSelenium2Test
$this->pause(800);
$this->byId("{$base}button1")->click();
+ $this->pause(50);
$this->assertEquals('haha!', $this->alertText());
$this->acceptAlert();
$this->byId("{$base}button2")->click();
+ $this->pause(50);
$this->assertEquals('ok', $this->alertText());
$this->acceptAlert();
$this->pause(500);
@@ -36,7 +39,7 @@ class CallbackAdapterTestCase extends PradoGenericSelenium2Test
function testIE()
{
$this->url("active-controls/index.php?page=ControlAdapterTest");
- $this->assertContains('Control Adapter - State Tracking Tests', $this->source());
+ $this->assertSourceContains('Control Adapter - State Tracking Tests');
$this->byId("{$base}button2")->click();
$this->assertEquals('ok', $this->alertText());