summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php
blob: dedb491fceec918fdd724a053bcee29e7c851d1d (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 Ticket703TestCase extends PradoGenericSeleniumTest
{
	function test()
	{
		$base = 'ctl0_Content_';
		$this->open('tickets/index.php?page=Ticket703.Ticket703');
		$this->assertTitle("Verifying Ticket703.Ticket703 703.703");
		// Start with an empty log
		$this->click($base.'ctl2');
		// Wait for callback to be lanched
		$this->pause(1000);
		$this->assertText($base.'logBox', "");

		$this->type($base.'logMessage', "Test of prado logging system");
		$this->click($base.'ctl0');
		$this->pause(800);
		$this->click($base.'ctl1');
		$this->assertTextPresent($base.'logBox', "Test of prado logging system");			

		// Clean log for next run
		$this->click($base.'ctl2');
		// Wait for callback to be lanched
		$this->pause(1000);
		$this->assertText($base.'logBox', "");

	}
}