summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
blob: 85785697938027c53c4e33ffcc7cd5a87de30c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class Ticket205TestCase extends SeleniumTestCase
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->open("tickets/index.php?page=Ticket205");
		$this->assertTitle("Verifying Ticket 205");
		$this->assertNotVisible("{$base}validator1");
		
		$this->type("{$base}textbox1", "test");
		$this->click("{$base}button1");
		$this->assertVisible("{$base}validator1");
		$this->assertAlert("error");
		
		$this->type("{$base}textbox1", "Prado");
		$this->clickAndWait("{$base}button1");		
		$this->assertNotVisible("{$base}validator1");
	}
}

?>