Sha256: 02516392e574ef771db51f93eb2051ab2962e22e84bdfb4bb7c946ce38e437b1
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
require 'test_helper' module Workarea class WebWidgetSystemTest < Workarea::SystemTest def test_callrail_script Workarea.with_config do |config| config.callrail_script_src = '//cdn.callrail.com/companies/915289901/d0742ed6dadcb0d29449/12/swap.js' visit storefront.root_path assert page.has_xpath?('//script[@id="cr-snippet"]', visible: false) config.callrail_script_src = nil visit storefront.root_path assert page.has_no_xpath?('//script[@id="cr-snippet"]', visible: false) end end def test_tracking_num Workarea.with_config do |config| config.callrail_target_num = '8105813686' visit storefront.root_path assert(page.has_content?('8105813686')) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-callrail-1.0.0.pre | test/system/workarea/storefront/web_widget_system_test.rb |