Sha256: bfe90728d5605bff372d9f2588584f1860daf7ba48bb9b58ab488f3e387a8139
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' describe "Tag implementation on the pages" do context "gtm id implement in tag " do it "should render tag with gtm id" do fill_in_gtm_id visit ('/') page.all('body script', visible: false).each do |script| script.text == "dataLayer, bag" end end end context "tag present on cart page " do it "should render tag" do fill_in_gtm_id visit ('/cart') page.all('body script', visible: false).each do |script| script.text == "dataLayer, cart" end end end context "tag present on product page " do it "should render tag on product page" do fill_in_gtm_id visit ('/products') page.all('body script', visible: false).each do |script| script.text == "dataLayer, product" end end end # context "tag present on order page " do # it "should render tag on order page" do # fill_in_gtm_id # visit ('/orders') # page.all('body script', visible: false).each do |script| # script.text == "dataLayer, order" # end # end # end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_gtm-0.0.22 | spec/requests/admin/gtm_render_tag_spec.rb |
spree_gtm-0.0.21 | spec/requests/admin/gtm_render_tag_spec.rb |
spree_gtm-0.0.20 | spec/requests/admin/gtm_render_tag_spec.rb |