prestashop-automation 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/actions/settings.rb +6 -0
- metadata +1 -1
data/lib/actions/settings.rb
CHANGED
@@ -7,6 +7,12 @@ module PrestaShopAutomation
|
|
7
7
|
value = {:item => 1, :line => 2, :total => 3}[option.to_sym]
|
8
8
|
|
9
9
|
if value
|
10
|
+
|
11
|
+
if !has_selector? '#PS_TAX_ROUND_TYPE' and option.to_sym == :line
|
12
|
+
#we don't have the option, but we asked for the default, so that's OK
|
13
|
+
return
|
14
|
+
end
|
15
|
+
|
10
16
|
select_by_value '#PS_TAX_ROUND_TYPE', value
|
11
17
|
click_button_named 'submitOptionstax', :first => true
|
12
18
|
standard_success_check
|