Sha256: 086d7840b38bb406716766e6489452947683e454548fdfb1bd76d8d6e1e197da
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
<%- if automation == 'sparkling_ios' -%> # frozen_string_literal: true require_relative '../../page_objects/pages/home' require_relative '../../page_objects/pages/pdp' Given("I'm an anonymous user on the home page") do @home_page = Home.new(app) end When('I select one of the products') do @home_page.go_to_backpack_pdp end When("I'm redirected to the product details page") do pdp_page = Pdp.new(app) expect(pdp_page.add_to_cart_text).to eq 'Add To Cart' end <%- else -%> # frozen_string_literal: true <% if automation == 'cross_platform' -%> require_relative '../../helpers/appium_helper' <%- end -%> require_relative '../../page_objects/pages/home' require_relative '../../page_objects/pages/pdp' Given("I'm an anonymous user on the home page") do @home_page = Home.new(driver) end When('I select one of the products') do @home_page.go_to_backpack_pdp end When("I'm redirected to the product details page") do pdp_page = Pdp.new(driver) expect(pdp_page.add_to_cart_text).to eq 'Add To Cart' end <%- end -%>
Version data entries
7 entries across 7 versions & 1 rubygems