summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
diff options
context:
space:
mode:
authorwei <>2006-02-02 05:04:50 +0000
committerwei <>2006-02-02 05:04:50 +0000
commita2a030c3cfbb0249762fffa4159107bc13f8952d (patch)
treee8b2f97068cf92a314df360ccf8dfb1d37b92bd6 /tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
parent93f6933c39b2e1896ff781a8f839a3c73a7e56b1 (diff)
Fixed #19
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
index 2b0ba466..49418efd 100644
--- a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
+++ b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
@@ -26,8 +26,19 @@ class DefaultButtonTest extends SeleniumTestCase
function testClick()
{
- $this->clickAndWait("ctl0_Content_Button2");
- $this->assertTextPresent("You have clicked on 'button2'.");
+ $this->verifyTitle("Test DefaultButton On Panel", "");
+ $this->assertTextNotPresent("You have clicked on", "");
+ $this->clickAndWait("link=button 3", "");
+ $this->verifyTextPresent("You have clicked on 'button 3'.", "");
+ $this->clickAndWait("//input[@type='submit' and @value='button1']", "");
+ $this->verifyTextPresent("You have clicked on 'button1'. ", "");
+ $this->clickAndWait("//input[@type='submit' and @value='button2']", "");
+ $this->verifyTextPresent("You have clicked on 'button2'. ", "");
+ $this->clickAndWait("link=button 3", "");
+ $this->verifyTextPresent("You have clicked on 'button 3'. ", "");
+ $this->click("ctl0_Content_check1", "");
+ $this->clickAndWait("//input[@type='submit' and @value='button2']", "");
+ $this->verifyTextPresent("You have clicked on 'button2'. ", "");
}
}
?> \ No newline at end of file