blob: 1a5e1b2f574e43ca8a855aa957c634054b60f05f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
class TextBoxGroupValidationTestCase extends PradoGenericSelenium2Test
{
function test()
{
$base="ctl0_Content_";
$this->url("active-controls/index.php?page=TextBoxValidationCallback");
$this->assertTextPresent('TextBox AutoPostBack With Group Validation');
$this->assertNotVisible("{$base}validator1");
$this->type("{$base}ZipCode", 'test');
$this->assertVisible("{$base}validator1");
$this->type("{$base}Address", 'Sydney');
$this->type("{$base}ZipCode", '2000');
$this->assertNotVisible("{$base}validator1");
$this->pause(800);
$this->assertValue("{$base}City", 'City: Sydney Zip: 2000');
}
}
|