From 1ba083b9bf77b334b773b84d4d9e5f44319d17a2 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 2 Apr 2007 06:19:55 +0000 Subject: Fixed #585, #586 --- .../tickets/tests/Ticket585TestCase.php | 27 ++++++++++++++++++++++ .../tickets/tests/Ticket586TestCase.php | 21 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tests/FunctionalTests/tickets/tests/Ticket585TestCase.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket586TestCase.php (limited to 'tests/FunctionalTests/tickets/tests') diff --git a/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php new file mode 100644 index 00000000..cbcb7bb2 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php @@ -0,0 +1,27 @@ +open('tickets/index.php?page=Ticket585'); + $this->verifyTitle("Verifying Ticket 585", ""); + + $this->assertText("error", ""); + $this->assertNotVisible("{$base}validator1"); + + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("error", "Success"); + $this->assertNotVisible("{$base}validator1"); + + $this->type("{$base}test", "15-03-2007"); + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("error", "Error"); + $this->assertVisible("{$base}validator1"); + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php new file mode 100644 index 00000000..4b5619cd --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php @@ -0,0 +1,21 @@ +open('tickets/index.php?page=Ticket586'); + $this->verifyTitle("Verifying Ticket 586", ""); + + $this->assertText("{$base}label1", "Status"); + $this->clickAndWait("{$base}button1"); + $this->assertText("{$base}label1", "Button 1 Clicked!"); + + $this->type("{$base}text1", "testing"); + $this->keyDownAndWait("{$base}text1", '\13'); + $this->assertText("{$base}label1", "Button 2 (default) Clicked!"); + } +} + +?> \ No newline at end of file -- cgit v1.2.3