summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket239TestCase.php
blob: 57251d23133c0d4b42a107a0eee9d6feb41618c1 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php

class Ticket239TestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$this->open('tickets/index.php?page=Ticket239');

		// view1
		$this->verifyTextPresent('view1 is activated','');
		$this->verifyTextNotPresent('view1 is deactivated','');
		$this->verifyTextNotPresent('view2 is activated','');
		$this->verifyTextNotPresent('view2 is deactivated','');
		$this->verifyTextNotPresent('view3 is activated','');
		$this->verifyTextNotPresent('view3 is deactivated','');

		// goto view2
		$this->clickAndWait('name=ctl0$Content$ctl1');
		$this->verifyTextNotPresent('view1 is activated','');
		$this->verifyTextPresent('view1 is deactivated','');
		$this->verifyTextPresent('view2 is activated','');
		$this->verifyTextNotPresent('view2 is deactivated','');
		$this->verifyTextNotPresent('view3 is activated','');
		$this->verifyTextNotPresent('view3 is deactivated','');

		// goto view3
		$this->clickAndWait('name=ctl0$Content$ctl3');
		$this->verifyTextNotPresent('view1 is activated','');
		$this->verifyTextNotPresent('view1 is deactivated','');
		$this->verifyTextNotPresent('view2 is activated','');
		$this->verifyTextPresent('view2 is deactivated','');
		$this->verifyTextPresent('view3 is activated','');
		$this->verifyTextNotPresent('view3 is deactivated','');

		// goto view2
		$this->clickAndWait('name=ctl0$Content$ctl4');
		$this->verifyTextNotPresent('view1 is activated','');
		$this->verifyTextNotPresent('view1 is deactivated','');
		$this->verifyTextPresent('view2 is activated','');
		$this->verifyTextNotPresent('view2 is deactivated','');
		$this->verifyTextNotPresent('view3 is activated','');
		$this->verifyTextPresent('view3 is deactivated','');

		// goto view1
		$this->clickAndWait('name=ctl0$Content$ctl2');
		$this->verifyTextPresent('view1 is activated','');
		$this->verifyTextNotPresent('view1 is deactivated','');
		$this->verifyTextNotPresent('view2 is activated','');
		$this->verifyTextPresent('view2 is deactivated','');
		$this->verifyTextNotPresent('view3 is activated','');
		$this->verifyTextNotPresent('view3 is deactivated','');
	}
}