blob: e4b72aafc604fb0abc50993a5f500fa63b47e7d3 (
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
41
|
<?php
class Ticket488TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base='ctl0_Content_';
$this->url('active-controls/index.php?page=CustomValidatorByPass');
$this->assertContains('Custom Login', $this->source());
$this->assertNotVisible('loginBox');
$this->byId("showLogin")->click();
$this->assertVisible("loginBox");
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
$this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
$this->type("{$base}Username", 'tea');
$this->type("{$base}Password", 'mmama');
$this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertNotVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
$this->type("{$base}Password", 'test');
$this->byId("{$base}checkLogin")->click();
$this->pause(800);
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
}
function test_more()
{
$this->url('tickets/index.php?page=Ticket488');
//add test assertions here.
}
}
|