summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authorwei <>2006-12-10 23:55:49 +0000
committerwei <>2006-12-10 23:55:49 +0000
commit840854be7886236d46d3408de5a084983373b4c7 (patch)
tree8a8c22463bc3ac7f556633e790818d724bc52ed0 /tests/FunctionalTests/tickets/tests
parent3c03a42d1edb0ec26110ace00f42e156cabff67b (diff)
Fixed #470
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket470TestCase.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php
new file mode 100644
index 00000000..05ad6fb6
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php
@@ -0,0 +1,51 @@
+<?php
+
+class Ticket470TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket470');
+ $this->verifyTitle("Verifying Ticket 470");
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "");
+ $this->assertVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "hello");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "OK!!!");
+ $this->assertNotVisible("{$base}validator1");
+
+ //reload
+ $this->click("{$base}reloadButton");
+ $this->pause(800);
+ $this->assertValue("{$base}TextBox", "hello");
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "");
+ $this->assertVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "test");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "OK!!!");
+ $this->assertNotVisible("{$base}validator1");
+ }
+}
+
+?> \ No newline at end of file