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

class ActiveHiddenFieldTestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base='ctl0_Content_';
	    $this->url("active-controls/index.php?page=ActiveHiddenFieldTest");
	    $fieldEmpty = 'No longer empty';
	    $fieldUsed = 'My value';

	    $this->assertTextPresent('Value of current hidden field');
		$this->click("{$base}Button1");
		$this->pause(800);
		$this->assertText("{$base}ResponseLabel", $fieldEmpty);
		$this->click("{$base}Button2");
		$this->pause(800);
		$this->assertText("{$base}ResponseLabel", $fieldUsed);
		$this->click("{$base}Button3");
		$this->pause(800);
		$this->assertText("{$base}ResponseLabel", $fieldEmpty.'|'.$fieldUsed);
	}
}