summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/issues
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/issues
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/issues')
-rwxr-xr-xtests/FunctionalTests/issues/tests/Issue504TestCase.php3
-rw-r--r--tests/FunctionalTests/issues/tests/Issue516TestCase.php2
-rwxr-xr-xtests/FunctionalTests/issues/tests/Issue524TestCase.php2
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/FunctionalTests/issues/tests/Issue504TestCase.php b/tests/FunctionalTests/issues/tests/Issue504TestCase.php
index dff27339..ce3e346e 100755
--- a/tests/FunctionalTests/issues/tests/Issue504TestCase.php
+++ b/tests/FunctionalTests/issues/tests/Issue504TestCase.php
@@ -5,11 +5,12 @@ class Issue504TestCase extends PradoGenericSelenium2Test
function test()
{
$this->url('issues/index.php?page=Issue504');
- $this->assertContains('Issue 504 Test', $this->source());
+ $this->assertSourceContains('Issue 504 Test');
$base='ctl0_Content_';
$this->byID("{$base}textbox1")->click();
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ENTER);
+ $this->pause(50);
$this->assertText("{$base}label1", "buttonOkClick");
}
diff --git a/tests/FunctionalTests/issues/tests/Issue516TestCase.php b/tests/FunctionalTests/issues/tests/Issue516TestCase.php
index 363e9f84..2b221081 100644
--- a/tests/FunctionalTests/issues/tests/Issue516TestCase.php
+++ b/tests/FunctionalTests/issues/tests/Issue516TestCase.php
@@ -5,7 +5,7 @@ class Issue516TestCase extends PradoGenericSelenium2Test
function test()
{
$this->url('issues/index.php?page=Issue516');
- $this->assertContains('Issue 516 Test', $this->source());
+ $this->assertSourceContains('Issue 516 Test');
$base='ctl0_Content_';
$row1='DataGrid_ctl1_';
$row2='DataGrid_ctl2_';
diff --git a/tests/FunctionalTests/issues/tests/Issue524TestCase.php b/tests/FunctionalTests/issues/tests/Issue524TestCase.php
index b7b022b2..7b3bb2aa 100755
--- a/tests/FunctionalTests/issues/tests/Issue524TestCase.php
+++ b/tests/FunctionalTests/issues/tests/Issue524TestCase.php
@@ -10,7 +10,7 @@ class Issue524TestCase extends PradoGenericSelenium2Test
function test()
{
$this->url('issues/index.php?page=Issue524');
- $this->assertContains('Issue 524 Test', $this->source());
+ $this->assertSourceContains('Issue 524 Test');
$base='ctl0_Content_';
$this->byID("{$base}buttonOk")->click();