summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket828TestCase.php
blob: 9a44a5eca0cce58b95e60b5a188e4e0d4e6ffa40 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
class Ticket828TestCase extends PradoGenericSelenium2Test
{

	function test()
	{
		$base = "ctl0_Content_";
		$this->url("tickets/index.php?page=Ticket828");
		$this->byId("{$base}submit1")->click();
		$this->assertVisible("{$base}validator1");
		$this->assertVisible("{$base}validator2");
		$this->assertVisible("{$base}validator3");
		$this->byId("{$base}list1_c0")->click();
		$this->addSelection("{$base}list2", "One");
		$this->addSelection("{$base}list2", "Two");
		$this->byId("{$base}list3_c3")->click();
		$this->byId("{$base}submit1")->click();
		$this->assertNotVisible("{$base}validator1");
		$this->assertNotVisible("{$base}validator2");
		$this->assertNotVisible("{$base}validator3");
		$this->byId("{$base}list1_c1")->click();
		$this->byId("{$base}list1_c2")->click();
		$this->byId("{$base}list1_c3")->click();
		$this->addSelection("{$base}list2", "Two");
		$this->byId("{$base}list1_c3")->click();
		$this->byId("{$base}submit1")->click();
		$this->assertNotVisible("{$base}validator1");
		$this->assertNotVisible("{$base}validator2");
		$this->assertNotVisible("{$base}validator3");
		$this->byId("{$base}list3_c3")->click();
		$this->byId("{$base}submit1")->click();
		$this->pause(200);
		$this->assertNotVisible("{$base}validator1");
		$this->assertNotVisible("{$base}validator2");
		$this->assertNotVisible("{$base}validator3");
	}
}