on master help sign in
[fix] gecko driver cannot detect the page load finish on preferences form submit. It now works with this dirty workaround..
commit629fa4355afc5a4680ae14d8b3d4d31e3616f9f6 authorAdam Tauber <asciimoo@gmail.com> dateSat 22 Oct 2016, 04:45 (10 years ago) parent684ceab
1 file changed+20−24
tests/robot/test_basic.robot+20−24
tests/robot/test_basic.robot+20−24
@@ -4,6 +4,14 @@ Test Setup Open Browser http://localhost:11111/
44Test Teardown Close All Browsers
55
66
7+*** Keywords ***
8+Submit 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
13+
14+
715*** Test Cases ***
816Front page
917 Page Should Contain about
@@ -33,8 +41,7 @@ Switch category
3341 Page Should Contain Checkbox category_dummy
3442 Click Element xpath=//*[.="general"]
3543 Click Element xpath=//*[.="dummy"]
36− Submit Form id=search_form
37− Location Should Be http://localhost:11111/
44+ Submit Preferences
3845 Checkbox Should Not Be Selected category_general
3946 Checkbox Should Be Selected category_dummy
4047
@@ -43,8 +50,7 @@ Change language
4350 Page Should Contain preferences
4451 Go To http://localhost:11111/preferences
4552 Select From List locale hu
46− Submit Form id=search_form
47− Location Should Be http://localhost:11111/
53+ Submit Preferences
4854 Page Should Contain rólunk
4955 Page Should Contain beállítások
5056
@@ -53,13 +59,11 @@ Change method
5359 Page Should Contain preferences
5460 Go To http://localhost:11111/preferences
5561 Select From List method GET
56− Submit Form id=search_form
57− Location Should Be http://localhost:11111/
62+ Submit Preferences
5863 Go To http://localhost:11111/preferences
5964 List Selection Should Be method GET
6065 Select From List method POST
61− Submit Form id=search_form
62− Location Should Be http://localhost:11111/
66+ Submit Preferences
6367 Go To http://localhost:11111/preferences
6468 List Selection Should Be method POST
6569
@@ -69,8 +73,7 @@ Change theme
6973 Go To http://localhost:11111/preferences
7074 List Selection Should Be theme legacy
7175 Select From List theme oscar
72− Submit Form id=search_form
73− Location Should Be http://localhost:11111/
76+ Submit Preferences
7477 Go To http://localhost:11111/preferences
7578 List Selection Should Be theme oscar
7679
@@ -80,8 +83,7 @@ Change safesearch
8083 Go To http://localhost:11111/preferences
8184 List Selection Should Be safesearch None
8285 Select From List safesearch Strict
83− Submit Form id=search_form
84− Location Should Be http://localhost:11111/
86+ Submit Preferences
8587 Go To http://localhost:11111/preferences
8688 List Selection Should Be safesearch Strict
8789
@@ -91,8 +93,7 @@ Change image proxy
9193 Go To http://localhost:11111/preferences
9294 List Selection Should Be image_proxy Disabled
9395 Select From List image_proxy Enabled
94− Submit Form id=search_form
95− Location Should Be http://localhost:11111/
96+ Submit Preferences
9697 Go To http://localhost:11111/preferences
9798 List Selection Should Be image_proxy Enabled
9899
@@ -102,8 +103,7 @@ Change search language
102103 Go To http://localhost:11111/preferences
103104 List Selection Should Be language Automatic
104105 Select From List language Turkish (Turkey) - tr_TR
105− Submit Form id=search_form
106− Location Should Be http://localhost:11111/
106+ Submit Preferences
107107 Go To http://localhost:11111/preferences
108108 List Selection Should Be language Turkish (Turkey) - tr_TR
109109
@@ -113,8 +113,7 @@ Change autocomplete
113113 Go To http://localhost:11111/preferences
114114 List Selection Should Be autocomplete -
115115 Select From List autocomplete google
116− Submit Form id=search_form
117− Location Should Be http://localhost:11111/
116+ Submit Preferences
118117 Go To http://localhost:11111/preferences
119118 List Selection Should Be autocomplete google
120119
@@ -126,8 +125,7 @@ Change allowed/disabled engines
126125 Element Should Contain xpath=//label[@class="deny"][@for='engine_dummy_dummy_dummy'] Block
127126 Element Should Contain xpath=//label[@class="deny"][@for='engine_general_general_dummy'] Block
128127 Click Element xpath=//label[@class="deny"][@for='engine_general_general_dummy']
129− Submit Form id=search_form
130− Location Should Be http://localhost:11111/
128+ Submit Preferences
131129 Page Should Contain about
132130 Page Should Contain preferences
133131 Go To http://localhost:11111/preferences
@@ -141,16 +139,14 @@ Block a plugin
141139 Go To http://localhost:11111/preferences
142140 List Selection Should Be theme legacy
143141 Select From List theme oscar
144− Submit Form id=search_form
145− Location Should Be http://localhost:11111/
142+ Submit Preferences
146143 Go To http://localhost:11111/preferences
147144 List Selection Should Be theme oscar
148145 Page Should Contain Plugins
149146 Click Link Plugins
150147 Checkbox Should Not Be Selected id=plugin_HTTPS_rewrite
151148 Click Element xpath=//label[@for='plugin_HTTPS_rewrite']
152− Submit Form id=search_form
153− Location Should Be http://localhost:11111/
149+ Submit Preferences
154150 Go To http://localhost:11111/preferences
155151 Page Should Contain Plugins
156152 Click Link Plugins