summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CalculatorTestCase.php
blob: 1a6347f914e0d730fcefdfa38c035abc489051bf (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 CalculatorTestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$this->open("active-controls/index.php?page=Calculator");
		$this->assertTextPresent("Callback Enabled Calculator");
		$this->assertNotVisible("summary");
		
		$this->click("sum");
		$this->assertVisible("summary");
		
		$this->type("a", "2");
		$this->type("b", "5");
		
		$this->click("sum");
		$this->assertNotVisible("summary");
		
		$this->assertValue("c", "7");
	}
}