blob: 46c240b12c8fe52e1bd9ae7c85e6ab1a06156ed4 (
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
29
|
<?php
class Ticket703TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket703.Ticket703');
$this->assertEquals($this->title(), "Verifying Ticket703.Ticket703 703.703");
// Start with an empty log
$this->byId($base.'ctl2')->click();
// Wait for callback to be lanched
$this->pause(1000);
$this->assertText($base.'logBox', "");
$this->type($base.'logMessage', "Test of prado logging system");
$this->byId($base.'ctl0')->click();
$this->pause(800);
$this->byId($base.'ctl1')->click();
$this->pause(1000);
$this->assertContains("Test of prado logging system", $this->byId($base.'logBox')->value());
// Clean log for next run
$this->byId($base.'ctl2')->click();
// Wait for callback to be lanched
$this->pause(1000);
$this->assertText($base.'logBox', "");
}
}
|