lib/produce/itunes_connect.rb in produce-0.1.0 vs lib/produce/itunes_connect.rb in produce-0.1.1
- old
+ new
@@ -124,10 +124,12 @@
else
Helper.log.info "Creating new app '#{Config.val(:app_name)}' on iTunes Connect".green
initial_create
+ initial_pricing
+
raise "Something went wrong when creating the new app - it's not listed in the App's list" unless app_exists?
Helper.log.info "Finished creating new app '#{Config.val(:app_name)}' on iTunes Connect".green
end
@@ -176,9 +178,16 @@
end
wait_for_elements(".language.hasPopOver") # looking good
Helper.log.info "Successfully created new app '#{Config.val(:app_name)}' on iTC. Setting up the initial information now.".green
+ end
+
+ def initial_pricing
+ sleep 3
+ click_on "Pricing"
+ first('#pricingPopup > option[value="3"]').select_option
+ first('.saveChangesActionButton').click
end
private
def app_exists?
open_new_app_popup # to get the dropdown of available app identifier, if it's there, the app was not yet created