Sha256: a02010e2685f94aa2c79859b480146631795b0f5d378d1662f8b499f631eed8c
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 Bytes
Contents
require 'test_helper' module Workarea module Storefront class TrustpilotScriptSystemTest < Workarea::SystemTest include Storefront::SystemTest def test_trustpilot_script Workarea.with_config do |config| config.trustpilot_key = '2fBeAHvcRSrEVUcB' visit storefront.root_path assert page.has_xpath?('//div[@id="tp-snippet"]') config.trustpilot_key = nil visit storefront.root_path assert page.has_no_xpath?('//div[@id="tp-snippet"]') end end def test_trustbox_widget visit storefront.root_path assert(page.has_selector?('.trustpilot-widget')) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems