summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2007-05-10 23:31:43 +0000
committerwei <>2007-05-10 23:31:43 +0000
commit527e422d8e3709a1e86efda3c5a50fbefe2d5423 (patch)
tree8f1240dc28b015949df3d5dd4eff67958e6336ba
parente2cb0b52aaa02a3f3f41d0df377d189529713738 (diff)
fixed #587 test case
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket587TestCase.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
index f02b6a42..6624b5ba 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
@@ -2,8 +2,9 @@
class Ticket587TestCase extends SeleniumTestCase
{
- function test()
+ function testKeyPress()
{
+ $this->skipBrowsers(self::INTERNET_EXPLORER);
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket587_reopened');
$this->assertTitle("Verifying Ticket 587_reopened");
@@ -21,6 +22,26 @@ class Ticket587TestCase extends SeleniumTestCase
$this->pause(800);
$this->assertText($base."label1", "Selection 2: asd 3 - item 2");
}
+
+ function testButtonClick()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket587_reopened');
+ $this->assertTitle("Verifying Ticket 587_reopened");
+
+ $this->assertText($base."label1", "Label 1");
+ $this->select($base."list1", "item 3");
+ $this->pause(800);
+ $this->select($base."list2", "value 3 - item 4");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: value 3 - item 4");
+
+ $this->click($base.'button6');
+ $this->pause(800);
+ $this->select($base."list2", "asd 3 - item 2");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: asd 3 - item 2");
+ }
}
?> \ No newline at end of file