summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2006-02-02 07:14:06 +0000
committerwei <>2006-02-02 07:14:06 +0000
commit4422f22094e6cfc8c34e391ab0ec7a3328cbf4cf (patch)
treeaed037192ca8ed75b9fc48a8ae0e41b343137a15 /tests
parent71ea1bd064dc36004e610fff56a23d09578cd7eb (diff)
FTest for #27
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page4
-rw-r--r--tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php7
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", "");
}
}