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/Ticket504TestCase.php53
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket526TestCase.php18
2 files changed, 71 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php
new file mode 100644
index 00000000..7c74a1d1
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php
@@ -0,0 +1,53 @@
+<?php
+
+class Ticket504TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket504');
+ $this->verifyTitle("Verifying Ticket 504", "");
+
+ $this->assertText("status", "");
+
+ $this->assertVisible("{$base}panelA");
+ $this->assertVisible("{$base}panelB");
+ $this->assertVisible("{$base}panelC");
+ $this->assertVisible("{$base}panelD");
+
+ $this->click("{$base}linka");
+ $this->pause(800);
+ $this->assertVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelA updated");
+
+ $this->click("{$base}linkb");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelB updated");
+
+ $this->click("{$base}linkc");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelC updated");
+
+ $this->click("{$base}linkd");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertVisible("{$base}panelD");
+ $this->assertText("status", "panelD updated");
+
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php
new file mode 100644
index 00000000..abba3a96
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php
@@ -0,0 +1,18 @@
+<?php
+
+class Ticket526TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket526');
+ $this->verifyTitle("Verifying Ticket 526", "");
+
+ $this->assertElementNotPresent("{$base}dpbutton");
+
+ $this->click("{$base}btn");
+ $this->pause(800);
+ $this->assertElementPresent("{$base}dpbutton");
+ }
+}
+?> \ No newline at end of file