summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket538TestCase.php
blob: 2970837fc10b0645db9e97ae743be4f391b5ac90 (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
<?php

class Ticket538TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base="ctl0_Content_";
		$this->url('tickets/index.php?page=Ticket538');
		$this->assertEquals("Verifying Ticket 538", $this->title());

		$this->assertText("{$base}ALLog", 'waiting for response...');

		$this->select("{$base}DataViewer", "empty :(");
		$this->byId("{$base}selectBtn")->click();
		$this->pause(800);

		$this->assertText("{$base}ALLog", '0,');

		$this->select("{$base}DataSelector", "select data set 2");
		$this->pause(800);
		$this->select("{$base}DataViewer", "G1: Steven=>10");
		$this->addSelection("{$base}DataViewer", "G2: Kevin=>65");

		$this->byId("{$base}selectBtn")->click();
		$this->pause(800);
		$this->assertText("{$base}ALLog", '4- "test1", 10- "test2",');
	}
}