summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
blob: 58bb6784491e1b743e55b0ae43bba47834825141 (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->byXPath("//input[@type='image' and @id='ctl0_Content_ctl0']")->click();
		$this->assertVisible('ctl0_Content_ctl1');
		$this->type("ctl0\$Content\$FooTextBox", "content");
		$this->byXPath("//input[@type='image' and @id='ctl0_Content_ctl0']")->click();
		$this->assertNotVisible('ctl0_Content_ctl1');
		$this->assertSourceContains("clicked at");
	}
}