summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket488TestCase.php')
-rwxr-xr-xtests/FunctionalTests/tickets/tests/Ticket488TestCase.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
index 7940338f..e4b72aaf 100755
--- a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
@@ -6,14 +6,14 @@ class Ticket488TestCase extends PradoGenericSelenium2Test
{
$base='ctl0_Content_';
$this->url('active-controls/index.php?page=CustomValidatorByPass');
- $this->assertTextPresent('Custom Login');
+ $this->assertContains('Custom Login', $this->source());
$this->assertNotVisible('loginBox');
- $this->click("showLogin");
+ $this->byId("showLogin")->click();
$this->assertVisible("loginBox");
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
- $this->click("{$base}checkLogin");
+ $this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
@@ -21,13 +21,13 @@ class Ticket488TestCase extends PradoGenericSelenium2Test
$this->type("{$base}Username", 'tea');
$this->type("{$base}Password", 'mmama');
- $this->click("{$base}checkLogin");
+ $this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertNotVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
$this->type("{$base}Password", 'test');
- $this->click("{$base}checkLogin");
+ $this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");