From 93c4193f4a3c315c7785bf5f9f522c955ef6fce7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 5 Aug 2006 00:38:30 +0000 Subject: Fixed #274 --- .../tickets/protected/pages/Ticket274.page | 22 ++++++++++++++++++++ .../tickets/tests/Ticket274TestCase.php | 24 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket274.page create mode 100644 tests/FunctionalTests/tickets/tests/Ticket274TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket274.page b/tests/FunctionalTests/tickets/protected/pages/Ticket274.page new file mode 100644 index 00000000..4e1441ed --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket274.page @@ -0,0 +1,22 @@ + + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php new file mode 100644 index 00000000..ae976a7f --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php @@ -0,0 +1,24 @@ +open('tickets/index.php?page=Ticket274'); + $this->assertTitle('Verifying Ticket 274'); + $this->assertNotVisible($base.'validator1'); + $this->assertNotVisible($base.'validator2'); + + $this->click($base.'button1'); + $this->assertVisible($base.'validator1'); + $this->assertNotVisible($base.'validator2'); + + $this->type($base.'MyDate', 'asd'); + $this->click($base.'button1'); + $this->assertVisible($base.'validator1'); + $this->assertNotVisible($base.'validator2'); + } +} + +?> \ No newline at end of file -- cgit v1.2.3