summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
blob: 2a83fac974a38d4db0a9febdf07ae18230a6d16a (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
42
<?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->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.
	}
}

?>