summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
blob: 547ffb38e445c3aed14da5dd0adc753c7858e8d0 (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->assertContains("clicked at", $this->source());
	}
}