summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/PopulateListTestCase.php
blob: adb5a3a54e928e6f59760aa01cb0d2e8a921e861 (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 PopulateListTestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$this->open("active-controls/index.php?page=PopulateActiveList");
		$this->verifyTextPresent("Populate active list controls");
		$this->assertText("label1", "");

		$this->click("button1");
		$this->pause(800);
		$this->select("list1", "World");
		$this->pause(800);
		$this->assertText("label1", "list1: World");

		$this->click("button2");
		$this->pause(800);
		$this->select("list2", "Prado");
		$this->pause(800);
		$this->assertText("label1", "list2: Prado");
	}
}