summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
blob: 948d864221e60bf2ea8a4362210e3faef4cef035 (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
<?php

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

		$this->assertText("{$base}label1", "Label 1");
		$this->byId("{$base}button1")->click();
		$this->pause(800);
		$this->assertText("{$base}label1", "Button 1 was clicked :");

		$text="helloworld";

		$this->execute(array(
			'script' => "tinyMCE.get('{$base}text1').setContent('{$text}')",
			'args'   => array()
		));

		$this->byId("{$base}button1")->click();
		$this->pause(800);
		$this->assertText("{$base}label1", "Button 1 was clicked : <p>{$text}</p>");
	}
}