summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket220TestCase.php18
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket225TestCase.php24
2 files changed, 42 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
new file mode 100644
index 00000000..0753f732
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
@@ -0,0 +1,18 @@
+<?php
+
+class Ticket220TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket220');
+ $this->assertTextPresent('ClientScript Test');
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("button1");
+ $this->assertText("{$base}label1", 'Label 1: ["ok", "ok 3?", "ok 2!"]');
+ $this->assertAlertNotPresent();
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket225TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket225TestCase.php
new file mode 100644
index 00000000..966e8383
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket225TestCase.php
@@ -0,0 +1,24 @@
+<?php
+
+class Ticket225TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket225');
+ $this->assertTextPresent('RadioButton Group Tests');
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->assertNotVisible("{$base}validator1");
+ $this->click("{$base}button4");
+ $this->assertVisible("{$base}validator1");
+
+ $this->click("{$base}button2");
+ $this->clickAndWait("{$base}button4");
+
+ $this->assertText("{$base}label1", 'ctl0$Content$button1 ctl0$Content$button2 ctl0$Content$button3');
+ $this->assertNotVisible("{$base}validator1");
+ }
+}
+
+?> \ No newline at end of file