prestashop-automation 0.8 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/actions/settings.rb +5 -5
  2. metadata +1 -1
@@ -2,19 +2,19 @@ module PrestaShopAutomation
2
2
  module SettingsActions
3
3
 
4
4
  def set_rounding_rule option
5
- goto_admin_tab 'AdminTaxes'
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? '#PS_TAX_ROUND_TYPE' and option.to_sym == :line
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 '#PS_TAX_ROUND_TYPE', value
17
- click_button_named 'submitOptionstax', :first => true
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
- sleep 1
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
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.8'
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: