summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.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/PostLoadingTestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php')
-rwxr-xr-xtests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php b/tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php
index 271a2ffb..9bad72e0 100755
--- a/tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php
+++ b/tests/FunctionalTests/active-controls/tests/PostLoadingTestCase.php
@@ -6,9 +6,9 @@ class PostLoadingTestCase extends PradoGenericSelenium2Test
{
$base="ctl0_Content_";
$this->url('active-controls/index.php?page=PostLoadingTest');
- $this->assertContains('PostLoading Test', $this->source());
+ $this->assertSourceContains('PostLoading Test');
- $this->assertNotContains('Hello World', $this->source());
+ $this->assertSourceNotContains('Hello World');
$this->byId('div1')->click();
$this->pause(800);
@@ -16,6 +16,6 @@ class PostLoadingTestCase extends PradoGenericSelenium2Test
$this->byId("{$base}MyButton")->click();
$this->pause(800);
- $this->assertContains('Result is Hello World', $this->source());
+ $this->assertSourceContains('Result is Hello World');
}
}