Sha256: d018f23268b3d7f9b1a01ab2d38750847e313bd2ea05962fabf3aa58d148e4e9
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
# frozen_string_literal: true require_relative 'generator' class AutomationGenerator < Generator def generate_login_page return unless (@_initializer.first & %w[android ios]).empty? template('automation/login_page.tt', "#{name}/page_objects/pages/login_page.rb") end def generate_abstract_page template('automation/abstract_page.tt', "#{name}/page_objects/abstract/abstract_page.rb") end def generate_home_page return if (@_initializer.first & %w[android ios]).empty? template('automation/home_page.tt', "#{name}/page_objects/pages/home_page.rb") end def generate_pdp_page return if (@_initializer.first & %w[android ios]).empty? template('automation/pdp_page.tt', "#{name}/page_objects/pages/pdp_page.rb") end def generate_header_component return unless (@_initializer.first & %w[android ios]).empty? template('automation/component.tt', "#{name}/page_objects/components/header_component.rb") end def generate_abstract_component return unless (@_initializer.first & %w[android ios]).empty? template('automation/abstract_component.tt', "#{name}/page_objects/abstract/abstract_component.rb") end def generate_appium_settings return if (@_initializer.first & %w[android ios]).empty? template('automation/appium_settings.tt', "#{name}/appium.txt") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.4.2 | lib/generators/automation_generator.rb |
ruby_raider-0.4.1 | lib/generators/automation_generator.rb |