From b37954110d2184279a7f400d8750996a27b8f666 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 5 Feb 2014 20:18:51 +0100 Subject: Bring back unit tests (they should be removed when creating a package) --- tests/Selenium/Logout.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/Selenium/Logout.php (limited to 'tests/Selenium/Logout.php') diff --git a/tests/Selenium/Logout.php b/tests/Selenium/Logout.php new file mode 100644 index 000000000..95eeda57c --- /dev/null +++ b/tests/Selenium/Logout.php @@ -0,0 +1,20 @@ +go('mail'); + + $this->click_button('logout'); + + sleep(TESTS_SLEEP); + + // task should be set to 'login' + $env = $this->get_env(); + $this->assertEquals('login', $env['task']); + + // form should exist + $user_input = $this->byCssSelector('form input[name="_user"]'); + } +} -- cgit v1.2.3