summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php
blob: b8c028683ec1effb3b4adafedfe7601d527bcb5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

class ActiveHiddenFieldTestCase extends PradoGenericSeleniumTest
{
	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);
	}
}