prestashop-automation 0.7.5 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/actions/settings.rb +6 -0
  2. metadata +1 -1
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prestashop-automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: