on fbb080f help sign in
searx/tests/robot/test_basic.robot
153 lines 5.3 kB history raw
1*** Settings ***
2Library Selenium2Library timeout=10 implicit_wait=0.5
3Test Setup Open Browser http://localhost:11111/
4Test Teardown Close All Browsers
7*** Keywords ***
8Submit Preferences
9 Set Selenium Speed 2 seconds
10 Submit Form id=search_form
11 Location Should Be http://localhost:11111/
12 Set Selenium Speed 0 seconds
15*** Test Cases ***
16Front page
17 Page Should Contain about
18 Page Should Contain preferences
20404 page
21 Go To http://localhost:11111/no-such-page
22 Page Should Contain Page not found
23 Page Should Contain Go to search page
25About page
26 Click Element link=about
27 Page Should Contain Why use searx?
28 Page Should Contain Element link=search engines
30Preferences page
31 Click Element link=preferences
32 Page Should Contain Preferences
33 Page Should Contain Default categories
34 Page Should Contain Currently used search engines
35 Page Should Contain dummy dummy
36 Page Should Contain general dummy
38Switch category
39 Go To http://localhost:11111/preferences
40 Page Should Contain Checkbox category_general
41 Page Should Contain Checkbox category_dummy
42 Click Element xpath=//*[.="general"]
43 Click Element xpath=//*[.="dummy"]
44 Submit Preferences
45 Checkbox Should Not Be Selected category_general
46 Checkbox Should Be Selected category_dummy
48Change language
49 Page Should Contain about
50 Page Should Contain preferences
51 Go To http://localhost:11111/preferences
52 Select From List locale hu
53 Submit Preferences
54 Page Should Contain rólunk
55 Page Should Contain beállítások
57Change method
58 Page Should Contain about
59 Page Should Contain preferences
60 Go To http://localhost:11111/preferences
61 Select From List method GET
62 Submit Preferences
63 Go To http://localhost:11111/preferences
64 List Selection Should Be method GET
65 Select From List method POST
66 Submit Preferences
67 Go To http://localhost:11111/preferences
68 List Selection Should Be method POST
70Change theme
71 Page Should Contain about
72 Page Should Contain preferences
73 Go To http://localhost:11111/preferences
74 List Selection Should Be theme legacy
75 Select From List theme oscar
76 Submit Preferences
77 Go To http://localhost:11111/preferences
78 List Selection Should Be theme oscar
80Change safesearch
81 Page Should Contain about
82 Page Should Contain preferences
83 Go To http://localhost:11111/preferences
84 List Selection Should Be safesearch None
85 Select From List safesearch Strict
86 Submit Preferences
87 Go To http://localhost:11111/preferences
88 List Selection Should Be safesearch Strict
90Change image proxy
91 Page Should Contain about
92 Page Should Contain preferences
93 Go To http://localhost:11111/preferences
94 List Selection Should Be image_proxy Disabled
95 Select From List image_proxy Enabled
96 Submit Preferences
97 Go To http://localhost:11111/preferences
98 List Selection Should Be image_proxy Enabled
100Change search language
101 Page Should Contain about
102 Page Should Contain preferences
103 Go To http://localhost:11111/preferences
104 List Selection Should Be language Automatic
105 Select From List language Turkish (Turkey) - tr_TR
106 Submit Preferences
107 Go To http://localhost:11111/preferences
108 List Selection Should Be language Turkish (Turkey) - tr_TR
110Change autocomplete
111 Page Should Contain about
112 Page Should Contain preferences
113 Go To http://localhost:11111/preferences
114 List Selection Should Be autocomplete -
115 Select From List autocomplete google
116 Submit Preferences
117 Go To http://localhost:11111/preferences
118 List Selection Should Be autocomplete google
120Change allowed/disabled engines
121 Page Should Contain about
122 Page Should Contain preferences
123 Go To http://localhost:11111/preferences
124 Page Should Contain Engine name
125 Element Should Contain xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy'] Block
126 Element Should Contain xpath=//label[@class="deny"][@for='engine_general_general_dummy'] Block
127 Click Element xpath=//label[@class="deny"][@for='engine_general_general_dummy']
128 Submit Preferences
129 Page Should Contain about
130 Page Should Contain preferences
131 Go To http://localhost:11111/preferences
132 Page Should Contain Engine name
133 Element Should Contain xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy'] Block
134 Element Should Contain xpath=//label[@class="deny"][@for='engine_general_general_dummy'] \
136Block a plugin
137 Page Should Contain about
138 Page Should Contain preferences
139 Go To http://localhost:11111/preferences
140 List Selection Should Be theme legacy
141 Select From List theme oscar
142 Submit Preferences
143 Go To http://localhost:11111/preferences
144 List Selection Should Be theme oscar
145 Page Should Contain Plugins
146 Click Link Plugins
147 Checkbox Should Not Be Selected id=plugin_HTTPS_rewrite
148 Click Element xpath=//label[@for='plugin_HTTPS_rewrite']
149 Submit Preferences
150 Go To http://localhost:11111/preferences
151 Page Should Contain Plugins
152 Click Link Plugins
153 Checkbox Should Be Selected id=plugin_HTTPS_rewrite