summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket679TestCase.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/tickets/tests/Ticket679TestCase.php
parentd21f0991c5920ae8432ba4ad561f843bec718d9c (diff)
Ported all tests from Selenium1 (RC) to Selenium2 (WebDriver) using a compatibility layer
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket679TestCase.php')
-rwxr-xr-xtests/FunctionalTests/tickets/tests/Ticket679TestCase.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php
index 4ee22c20..af957fa3 100755
--- a/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php
@@ -1,18 +1,18 @@
<?php
-class Ticket679TestCase extends PradoGenericSeleniumTest
+class Ticket679TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket679');
- $this->assertTitle("Verifying Ticket 679");
-
+ $this->url('tickets/index.php?page=Ticket679');
+ $this->assertEquals($this->title(), "Verifying Ticket 679");
+
// First part of ticket : Repeater bug
$this->click($base."ctl0");
$this->pause(800);
$this->assertText($base."myLabel",'outside');
- $this->verifyVisible($base."myLabel");
-
+ $this->assertVisible($base."myLabel");
+
// Reload completly the page
$this->refresh();
$this->pause(800);
@@ -20,16 +20,16 @@ class Ticket679TestCase extends PradoGenericSeleniumTest
$this->click($base."Repeater_ctl0_ctl0");
$this->pause(800);
$this->assertText($base."myLabel",'inside');
- $this->verifyVisible($base."myLabel");
-
+ $this->assertVisible($base."myLabel");
+
// Second part of ticket : ARB bug
- $this->verifyNotChecked($base."myRadioButton");
+ $this->assertNotChecked($base."myRadioButton");
$this->click($base."ctl1");
$this->pause(800);
- $this->verifyChecked($base."myRadioButton");
+ $this->assertChecked($base."myRadioButton");
$this->click($base."ctl2");
$this->pause(800);
- $this->verifyNotChecked($base."myRadioButton");
+ $this->assertNotChecked($base."myRadioButton");
$this->pause(800);
}