summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php
blob: 2522786b4447f2b3cd0e9fba5ef7a8a007e75a95 (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 Ticket586TestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->url('tickets/index.php?page=Ticket586');
		$this->assertEquals("Verifying Ticket 586", $this->title());

		$this->assertText("{$base}label1", "Status");
		$this->byId("{$base}button1")->click();
		$this->pause(50);
		$this->assertText("{$base}label1", "Button 1 Clicked!");

		$this->type("{$base}text1", "testing");

		// this can't work properly without manual testing
		// $this->keyDownAndWait("{$base}text1", '\13');
		// $this->assertText("{$base}label1", "Button 2 (default) Clicked!");
	}
}