summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.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/DataGrid4TestCase.php
parent1feb1e95660fdfeb5b6d9e12c6fe085aa2bec5ad (diff)
Fix tests
work around stale references by explicitly waiting
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php
index f67f5634..974b5bca 100755
--- a/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php
@@ -7,22 +7,27 @@ class QuickstartDataGrid4TestCase extends PradoGenericSelenium2Test
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample4&amp;notheme=true&amp;lang=en");
// verify the 2nd row of data
- $this->assertContains("Design Patterns: Elements of Reusable Object-Oriented Software", $this->source());
- $this->assertContains("Addison-Wesley Professional", $this->source());
- $this->assertContains("$47.04", $this->source());
+ $this->assertSourceContains("Design Patterns: Elements of Reusable Object-Oriented Software");
+ $this->assertSourceContains("Addison-Wesley Professional");
+ $this->assertSourceContains("$47.04");
$this->assertAttribute('ctl0_body_DataGrid_ctl2_ctl5@checked','regexp:true|checked');
$this->assertAttribute('ctl0_body_DataGrid_ctl2_ctl5@disabled','regexp:true|disabled');
// verify sorting
$this->byLinkText("Book Title")->click();
+ $this->pause(50);
$this->assertAttribute('ctl0_body_DataGrid_ctl1_ctl5@checked', null);
$this->byLinkText("Publisher")->click();
+ $this->pause(50);
$this->assertAttribute('ctl0_body_DataGrid_ctl6_ctl5@checked', null);
$this->byLinkText("Price")->click();
+ $this->pause(50);
$this->assertAttribute('ctl0_body_DataGrid_ctl2_ctl5@checked', null);
$this->byLinkText("In-stock")->click();
+ $this->pause(50);
$this->assertAttribute('ctl0_body_DataGrid_ctl1_ctl5@checked', null);
$this->byLinkText("Rating")->click();
+ $this->pause(50);
$this->assertAttribute('ctl0_body_DataGrid_ctl4_ctl5@checked', null);
}
}