summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket700TestCase.php')
-rwxr-xr-xtests/FunctionalTests/tickets/tests/Ticket700TestCase.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
index 0366c2fc..d14823bf 100755
--- a/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
@@ -1,13 +1,13 @@
<?php
-class Ticket700TestCase extends PradoGenericSeleniumTest
+class Ticket700TestCase extends PradoGenericSelenium2Test
{
function test()
{
// page: Home
- $this->open('tickets/index700.php');
+ $this->url('tickets/index700.php');
$this->clickAndWait('ctl0_Logout');
$this->clickAndWait('pageHome');
- $this->assertTitle("Home");
+ $this->assertEquals($this->title(), "Home");
$this->assertTextPresent('|Param1: Set at app config|');
$this->assertTextPresent('|Param2: Set at root|');
$this->assertTextPresent('|Param3: default 3|');
@@ -16,12 +16,12 @@ class Ticket700TestCase extends PradoGenericSeleniumTest
// page: admin.Home
$this->clickAndWait('pageAdminHome');
- $this->assertTitle('UserLogin');
+ $this->assertEquals($this->title(), 'UserLogin');
$this->type('ctl0_Main_Username','AdminUser');
$this->type('ctl0_Main_Password','demo');
$this->clickAndWait('ctl0_Main_LoginButton');
$this->clickAndWait('pageAdminHome');
- $this->assertTitle('admin.Home');
+ $this->assertEquals($this->title(), 'admin.Home');
$this->assertTextPresent('|Param1: Set at app config|');
$this->assertTextPresent('|Param2: Set at admin|');
$this->assertTextPresent('|Param3: Set at admin|');
@@ -30,24 +30,24 @@ class Ticket700TestCase extends PradoGenericSeleniumTest
// page: admin.Home2
$this->clickAndWait('pageAdminHome2');
- $this->assertTitle('admin.Home2');
+ $this->assertEquals($this->title(), 'admin.Home2');
$this->clickAndWait('ctl0_Logout');
$this->clickAndWait('pageAdminHome2');
- $this->assertTitle('admin.Home2');
+ $this->assertEquals($this->title(), 'admin.Home2');
// page: admin.users.Home
$this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('UserLogin');
+ $this->assertEquals($this->title(), 'UserLogin');
$this->type('ctl0_Main_Username','NormalUser');
$this->type('ctl0_Main_Password','demo');
$this->clickAndWait('ctl0_Main_LoginButton');
$this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('UserLogin');
+ $this->assertEquals($this->title(), 'UserLogin');
$this->type('ctl0_Main_Username','AdminUser');
$this->type('ctl0_Main_Password','demo');
$this->clickAndWait('ctl0_Main_LoginButton');
$this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('admin.users.Home');
+ $this->assertEquals($this->title(), 'admin.users.Home');
$this->assertTextPresent('|Param1: Set at admin|');
$this->assertTextPresent('|Param2: Set at admin.users|');
$this->assertTextPresent('|Param3: default 3|');
@@ -56,11 +56,11 @@ class Ticket700TestCase extends PradoGenericSeleniumTest
// page: admin.users.Home2
$this->clickAndWait('pageAdminUsersHome2');
- $this->assertTitle('admin.users.Home2');
+ $this->assertEquals($this->title(), 'admin.users.Home2');
// page: content.Home
$this->clickAndWait('pageContentHome');
- $this->assertTitle('content.Home');
+ $this->assertEquals($this->title(), 'content.Home');
$this->assertTextPresent('|Param1: Set at app config|');
$this->assertTextPresent('|Param2: Set at root|');
$this->assertTextPresent('|Param3: default 3|');