blob: a3394bca5d91ea1bc4351cc2a9c1d1bf52ff8b48 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
class Ticket671_reopenedTestCase extends PradoGenericSelenium2Test
{
function test()
{
$base="ctl0_Content_";
$this->url('tickets/index.php?page=Ticket671_reopened');
$this->assertEquals($this->title(), "Verifying Ticket 671_reopened");
// Type wrong value
$this->type($base.'testField', 'abcd');
$this->byId($base.'ctl4')->click();
$this->pause(800);
$this->assertVisible($base.'ctl2');
$this->assertText($base.'Result', 'Check callback called (1) --- Save callback called DATA NOK');
// Reclick, should not have any callback
$this->byId($base.'ctl4')->click();
$this->pause(800);
$this->assertVisible($base.'ctl2');
$this->assertText($base.'Result', 'Check callback called (2) --- Save callback called DATA NOK');
// Type right value
$this->type($base.'testField', 'Test');
$this->byId($base.'ctl4')->click();
$this->pause(800);
$this->assertNotVisible($base.'ctl2');
$this->assertText($base.'Result', 'Check callback called (3) --- Save callback called DATA OK');
// Type empty value
$this->type($base.'testField', '');
$this->byId($base.'ctl4')->click();
$this->pause(800);
$this->assertVisible($base.'ctl1');
$this->assertNotVisible($base.'ctl2');
$this->assertText($base.'Result', 'Check callback called (3) --- Save callback called DATA OK');
// Type right value
$this->type($base.'testField', 'Test');
$this->byId($base.'ctl4')->click();
$this->pause(800);
$this->assertNotVisible($base.'ctl1');
$this->assertNotVisible($base.'ctl2');
$this->assertText($base.'Result', 'Check callback called (4) --- Save callback called DATA OK');
}
}
|