summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
blob: 7940338fc7419f120af3e0e73bc6f978e9cdac42 (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->assertTextPresent('Custom Login');
		$this->assertNotVisible('loginBox');
		$this->click("showLogin");
		$this->assertVisible("loginBox");
		$this->assertNotVisible("{$base}validator1");
		$this->assertNotVisible("{$base}validator2");

		$this->click("{$base}checkLogin");
		$this->pause(800);
		$this->assertVisible("{$base}validator1");
		$this->assertNotVisible("{$base}validator2");

		$this->type("{$base}Username", 'tea');
		$this->type("{$base}Password", 'mmama');

		$this->click("{$base}checkLogin");
		$this->pause(800);
		$this->assertNotVisible("{$base}validator1");
		$this->assertVisible("{$base}validator2");

		$this->type("{$base}Password", 'test');
		$this->click("{$base}checkLogin");
		$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.
	}
}