From af1406119dcfcc4aa0bbbdf5c4449167cea5870c Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Thu, 22 Feb 2018 18:23:11 +0530 Subject: [PATCH] searx: Add basic functional tests - Tests to enable/disable Searx Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- functional_tests/features/web_search.feature | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 functional_tests/features/web_search.feature diff --git a/functional_tests/features/web_search.feature b/functional_tests/features/web_search.feature new file mode 100644 index 000000000..3364dc077 --- /dev/null +++ b/functional_tests/features/web_search.feature @@ -0,0 +1,34 @@ +# +# This file is part of FreedomBox. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# + +@apps @searx +Feature: Web Search + Run Searx metasearch engine. + +Background: + Given I'm a logged in user + Given the searx application is installed + +Scenario: Enable searx application + Given the searx application is disabled + When I enable the searx application + Then the searx site should be available + +Scenario: Disable searx application + Given the searx application is enabled + When I disable the searx application + Then the searx site should not be available