diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-01-02 11:14:49 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-01-10 19:23:10 +0100 |
commit | 53979a7bf7669c803c2a493fbf136519f6a293e6 (patch) | |
tree | 3b79da9408699108ba89b22cedf73cfff1fe59b7 /tests/robot | |
parent | f9186344b3642fb3d55d2dc46c96c6b25b8ccf41 (diff) | |
download | searxng-53979a7bf7669c803c2a493fbf136519f6a293e6.tar.gz searxng-53979a7bf7669c803c2a493fbf136519f6a293e6.zip |
[mod] remove buildout/makefile infrastructure
Diffstat (limited to 'tests/robot')
-rw-r--r-- | tests/robot/__init__.py | 0 | ||||
-rw-r--r-- | tests/robot/test_basic.robot | 44 |
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/robot/__init__.py b/tests/robot/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/robot/__init__.py diff --git a/tests/robot/test_basic.robot b/tests/robot/test_basic.robot new file mode 100644 index 000000000..1b8e78fff --- /dev/null +++ b/tests/robot/test_basic.robot @@ -0,0 +1,44 @@ +*** Settings *** +Library Selenium2Library timeout=10 implicit_wait=0.5 +Test Setup Open Browser http://localhost:11111/ +Test Teardown Close All Browsers + + +*** Test Cases *** +Front page + Page Should Contain about + Page Should Contain preferences + +About page + Click Element link=about + Page Should Contain Why use Searx? + Page Should Contain Element link=search engines + +Preferences page + Click Element link=preferences + Page Should Contain Preferences + Page Should Contain Default categories + Page Should Contain Currently used search engines + Page Should Contain dummy_dummy + Page Should Contain general_dummy + +Switch category + Go To http://localhost:11111/preferences + Page Should Contain Checkbox category_general + Page Should Contain Checkbox category_dummy + Click Element xpath=//*[.="general"] + Click Element xpath=//*[.="dummy"] + Submit Form id=search_form + Location Should Be http://localhost:11111/ + Checkbox Should Not Be Selected category_general + Checkbox Should Be Selected category_dummy + +Change language + Page Should Contain about + Page Should Contain preferences + Go To http://localhost:11111/preferences + Select From List locale hu + Submit Form id=search_form + Location Should Be http://localhost:11111/ + Page Should Contain rólunk + Page Should Contain beállítások |