blob: c3b2f43f25f4f12beadd3ca711cdaf8247057fd5 (
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
38
39
40
|
<?php
class Ticket488TestCase extends PradoGenericSeleniumTest
{
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->assertNotVisible("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->click("checkLogin");
$this->pause(800);
$this->assertNotVisible("validator1");
$this->assertNotVisible("validator2");
}
function test_more()
{
$this->open('tickets/index.php?page=Ticket488');
//add test assertions here.
}
}
|