blob: c54b41703502a14c99febda236ea2b8f75ada4ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
class Ticket488TestCase extends SeleniumTestCase
{
function test()
{
$this->open('active-controls/index.php?page=CustomValidatorByPass');
$this->assertTextPresent('Custom Login');
$this->assertNotVisible('loginBox');
$this->click("showLogin");
$this->assertVisible("loginBox");
$this->assertNotVisible("validator1");
$this->assertNotVisible("validator2");
$this->click("checkLogin");
$this->pause(800);
$this->assertVisible("validator1");
$this->assertVisible("validator2");
$this->type('Username', 'tea');
$this->type('Password', 'mmama');
$this->click("checkLogin");
$this->pause(800);
$this->assertNotVisible("validator1");
$this->assertVisible("validator2");
$this->type('Password', 'test');
$this->pause(800);
$this->assertNotVisible("validator1");
$this->assertNotVisible("validator2");
$this->assertNotVisible('loginBox');
}
}
?>
|