summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authortof <>2007-07-19 12:20:24 +0000
committertof <>2007-07-19 12:20:24 +0000
commitc20d7eed7c840fbc3224a468356ba47e8d305f03 (patch)
tree7605a0097771714ebc6dd7c983e8cd2a75c9c888 /tests/FunctionalTests/tickets/tests
parent42f0baae8fb39be2dd7a4c5c377f23c3f56fc865 (diff)
Add functional test for Ticket #592
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket592TestCase.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket592TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket592TestCase.php
new file mode 100644
index 00000000..b6a734b8
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket592TestCase.php
@@ -0,0 +1,47 @@
+<?php
+
+class Ticket592TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket592');
+ $this->assertTitle("Verifying Ticket 592");
+
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("{$base}radio1");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
+
+ $this->click("{$base}radio2");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
+
+ $this->click("{$base}bad_radio1");
+ $this->click("{$base}button2");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
+
+ $this->click("{$base}bad_radio2");
+ $this->click("{$base}button2");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
+
+ $this->click("{$base}bad_radio3");
+ $this->click("{$base}button3");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio3 checked:{1} bad_radio4 checked:{}');
+
+ $this->click("{$base}bad_radio4");
+ $this->click("{$base}button3");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio3 checked:{} bad_radio4 checked:{1}');
+
+ }
+
+}
+
+?> \ No newline at end of file