summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-28 10:39:25 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-28 10:39:25 +0100
commit82774aa0a41562a325f31c901584ec01c8238573 (patch)
tree97931786ae69c7bf2b63fc87f232080e4b6c4b04 /tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
parentd21f0991c5920ae8432ba4ad561f843bec718d9c (diff)
Ported all tests from Selenium1 (RC) to Selenium2 (WebDriver) using a compatibility layer
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/DataList2TestCase.php41
1 files changed, 20 insertions, 21 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
index 4fb3743e..2957c96f 100755
--- a/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
@@ -1,22 +1,22 @@
<?php
-class QuickstartDataList2TestCase extends PradoGenericSeleniumTest
+class QuickstartDataList2TestCase extends PradoGenericSelenium2Test
{
function test()
{
- $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample2&amp;notheme=true&amp;lang=en", "");
+ $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample2&amp;notheme=true&amp;lang=en");
// verify initial presentation
- $this->verifyTextPresent("Motherboard ", "");
- $this->verifyTextPresent("Monitor ", "");
+ $this->assertTextPresent("Motherboard", "");
+ $this->assertTextPresent("Monitor", "");
// verify selecting an item
$this->clickAndWait("link=ITN003", "");
- $this->verifyTextPresent("Quantity", "");
- $this->verifyTextPresent("Price", "");
- $this->verifyTextPresent("\$80", "");
+ $this->assertTextPresent("Quantity", "");
+ $this->assertTextPresent("Price", "");
+ $this->assertTextPresent("\$80", "");
$this->clickAndWait("link=ITN005", "");
- $this->verifyTextPresent("\$150", "");
+ $this->assertTextPresent("\$150", "");
// verify editting an item
$this->clickAndWait("id=ctl0_body_DataList_ctl5_ctl0", "");
@@ -27,8 +27,8 @@ class QuickstartDataList2TestCase extends PradoGenericSeleniumTest
// verify item is saved
$this->clickAndWait("link=ITN005", "");
- $this->verifyTextPresent("\$140.99", "");
- $this->verifyTextPresent("11", "");
+ $this->assertTextPresent("\$140.99", "");
+ $this->assertTextPresent("11", "");
// verify editting another item
$this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
@@ -39,21 +39,20 @@ class QuickstartDataList2TestCase extends PradoGenericSeleniumTest
// verify item is canceled
$this->clickAndWait("link=ITN003", "");
- $this->verifyTextPresent("2", "");
- $this->verifyTextPresent("Harddrive ", "");
+ $this->assertTextPresent("2", "");
+ $this->assertTextPresent("Harddrive", "");
// verify item deletion
$this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
$this->verifyConfirmation("Are you sure?");
- $this->chooseCancelOnNextConfirmation();
$this->click("id=ctl0_body_DataList_ctl5_ctl2", "");
- $this->verifyConfirmation("Are you sure?");
- $this->verifyTextPresent("Motherboard ", "");
- $this->verifyTextPresent("CPU ", "");
- $this->verifyTextNotPresent("Harddrive","");
- $this->verifyTextPresent("Sound card", "");
- $this->verifyTextPresent("Video card", "");
- $this->verifyTextPresent("Keyboard","");
- $this->verifyTextPresent("Monitor ", "");
+ $this->verifyConfirmationDismiss("Are you sure?");
+ $this->assertTextPresent("Motherboard", "");
+ $this->assertTextPresent("CPU", "");
+ $this->assertTextNotPresent("Harddrive","");
+ $this->assertTextPresent("Sound card", "");
+ $this->assertTextPresent("Video card", "");
+ $this->assertTextPresent("Keyboard","");
+ $this->assertTextPresent("Monitor", "");
}
}