summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
blob: 3fea580a3ff754ff867fea5d69ee3c465a02f461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

class Ticket121TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$this->url('tickets/index.php?page=Ticket121');
		$this->type("ctl0\$Content\$FooTextBox", "");
		$this->assertNotVisible('ctl0_Content_ctl1');
		$this->click("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
		$this->assertVisible('ctl0_Content_ctl1');
		$this->type("ctl0\$Content\$FooTextBox", "content");
		$this->clickAndWait("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
		$this->assertNotVisible('ctl0_Content_ctl1');
		$this->assertTextPresent("clicked at", "");
	}
}