summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authorwei <>2006-12-13 10:07:37 +0000
committerwei <>2006-12-13 10:07:37 +0000
commit3c24d31c69dffb6f65214b6d383d446ac122ff14 (patch)
tree971267876c36893930f84d9663031b154799b10b /tests/FunctionalTests/tickets/tests
parent840854be7886236d46d3408de5a084983373b4c7 (diff)
Fixed #488.
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket488TestCase.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
new file mode 100644
index 00000000..c54b4170
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
@@ -0,0 +1,37 @@
+<?php
+
+class Ticket488TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('active-controls/index.php?page=CustomValidatorByPass');
+ $this->assertTextPresent('Custom Login');
+ $this->assertNotVisible('loginBox');
+ $this->click("showLogin");
+ $this->assertVisible("loginBox");
+ $this->assertNotVisible("validator1");
+ $this->assertNotVisible("validator2");
+
+ $this->click("checkLogin");
+ $this->pause(800);
+ $this->assertVisible("validator1");
+ $this->assertVisible("validator2");
+
+ $this->type('Username', 'tea');
+ $this->type('Password', 'mmama');
+
+ $this->click("checkLogin");
+ $this->pause(800);
+ $this->assertNotVisible("validator1");
+ $this->assertVisible("validator2");
+
+ $this->type('Password', 'test');
+ $this->pause(800);
+ $this->assertNotVisible("validator1");
+ $this->assertNotVisible("validator2");
+ $this->assertNotVisible('loginBox');
+ }
+
+}
+
+?> \ No newline at end of file