diff options
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r-- | tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page | 4 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page index 098051fb..f92511c7 100644 --- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page +++ b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page @@ -3,11 +3,11 @@ <com:TTextBox ID="TextBox" />
<com:TRequiredFieldValidator
+ ID="validator1"
ControlToValidate="TextBox"
ErrorMessage="You must enter a value"
Display="Dynamic"
- ValidationGroup="Group2"
- />
+ ValidationGroup="Group2" />
<com:TCheckBoxList AutoPostBack="true" ValidationGroup="Group2">
<com:TListItem Text="Agree" />
<com:TListItem Text="Disagree" />
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php index 2c4e1bfb..05483535 100644 --- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php +++ b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php @@ -12,6 +12,13 @@ class Ticket_27_TestCase extends SeleniumTestCase function test()
{
$this->open($this->getPage($this));
+ $this->verifyTitle("Verifying Ticket 27", "");
+ $this->click("//input[@value='Agree']", "");
+ $this->assertVisible("ctl0_Content_validator1", "");
+ $this->type("ctl0_Content_TextBox", "122");
+ $this->assertNotVisible("ctl0_Content_validator1", "");
+ $this->clickAndWait("//input[@value='Disagree']", "");
+ $this->assertNotVisible("ctl0_Content_validator1", "");
}
}
|