From a2a030c3cfbb0249762fffa4159107bc13f8952d Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 2 Feb 2006 05:04:50 +0000 Subject: Fixed #19 --- .../protected/pages/UI/TestTPanelDefaultButton.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php') 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 -- cgit v1.2.3