summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
blob: 57b0c95bf7be940b433311f1c62ad50b576d047f (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
<?php

class Ticket205TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->url("tickets/index.php?page=Ticket205");
		$this->assertEquals($this->title(), "Verifying Ticket 205");
		$this->assertNotVisible("{$base}validator1");

		$this->type("{$base}textbox1", "test");
		$this->byId("{$base}button1")->click();

		$this->assertEquals("error", $this->alertText());
		$this->acceptAlert();

		$this->assertVisible("{$base}validator1");

		$this->type("{$base}textbox1", "Prado");
		$this->byId("{$base}button1")->click();
		$this->assertNotVisible("{$base}validator1");
	}
}