summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php
blob: 259a651693410446b7c6bab5b03dea1b58ede635 (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 ActiveHiddenFieldTestCase extends SeleniumTestCase
{
	function test()
	{
	    $this->open("active-controls/index.php?page=ActiveHiddenFieldTest");
	    $fieldEmpty = 'No longer empty';
	    $fieldUsed = 'My value';
	    
	    $this->verifyTextPresent('Value of current hidden field');
		$this->click('Button1');
		$this->pause(800);
		$this->assertText('ResponseLabel', $fieldEmpty);
		$this->click('Button2');
		$this->pause(800);
		$this->assertText('ResponseLabel', $fieldUsed);
		$this->click('Button3');
		$this->pause(800);
		$this->assertText('ResponseLabel', $fieldEmpty.'|'.$fieldUsed);
	}
}

?>