prestashop-automation 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/actions/settings.rb +5 -5
- metadata +1 -1
data/lib/actions/settings.rb
CHANGED
@@ -2,19 +2,19 @@ module PrestaShopAutomation
|
|
2
2
|
module SettingsActions
|
3
3
|
|
4
4
|
def set_rounding_rule option
|
5
|
-
goto_admin_tab '
|
5
|
+
goto_admin_tab 'AdminPreferences'
|
6
6
|
|
7
7
|
value = {:item => 1, :line => 2, :total => 3}[option.to_sym]
|
8
8
|
|
9
9
|
if value
|
10
10
|
|
11
|
-
if !has_selector? '#
|
11
|
+
if !has_selector? '#PS_ROUND_TYPE' and option.to_sym == :line
|
12
12
|
#we don't have the option, but we asked for the default, so that's OK
|
13
13
|
return
|
14
14
|
end
|
15
15
|
|
16
|
-
select_by_value '#
|
17
|
-
click_button_named '
|
16
|
+
select_by_value '#PS_ROUND_TYPE', value
|
17
|
+
click_button_named 'submitOptionsconfiguration', :first => true
|
18
18
|
standard_success_check
|
19
19
|
else
|
20
20
|
throw "Unsupported option: #{option}"
|
@@ -83,7 +83,7 @@ module PrestaShopAutomation
|
|
83
83
|
standard_success_check
|
84
84
|
|
85
85
|
if on and tax_group_id
|
86
|
-
|
86
|
+
goto_admin_tab 'AdminTaxes' #for some reason, we need to refresh here
|
87
87
|
select_by_value '#PS_ECOTAX_TAX_RULES_GROUP_ID', tax_group_id
|
88
88
|
click_button_named 'submitOptionstax', :first => true
|
89
89
|
standard_success_check
|