summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket225TestCase.php
blob: 7cb8ce05561b62bba09b584e5a8dc8f4afe0a76d (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 Ticket225TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base="ctl0_Content_";
		$this->url('tickets/index.php?page=Ticket225');
		$this->assertSourceContains('RadioButton Group Tests');
		$this->assertText("{$base}label1", "Label 1");

		$this->assertNotVisible("{$base}validator1");
		$this->byId("{$base}button4")->click();
		$this->assertVisible("{$base}validator1");

		$this->byId("{$base}button2")->click();
		$this->byId("{$base}button4")->click();

		$this->assertNotVisible("{$base}validator1");
		$this->assertText("{$base}label1", 'ctl0$Content$button1 ctl0$Content$button2 ctl0$Content$button3');
	}
}