Sha256: 701b9075ab49751a76d215c9408d0d2cf48d6ac48ed2dccf8e0658e4b4eb9f51

Contents?: true

Size: 505 Bytes

Versions: 63

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Spree
  module TestingSupport
    module BlacklistUrls
      def setup_url_blacklist(browser)
        if browser.respond_to?(:url_blacklist)
          browser.url_blacklist = ['https://fonts.googleapis.com']
        end
      end
    end
  end
end

RSpec.configure do |config|
  config.before(:each, type: :feature) do
    setup_url_blacklist(page.driver.browser)
  end

  config.before(:each, type: :system) do
    setup_url_blacklist(page.driver.browser)
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
solidus_core-4.4.2 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.4.1 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.4.0 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.3.4 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.2.4 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.1.5 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.3.3 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.3.2 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.1.4 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.3.1 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.3.0 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.2.3 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.1.3 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.0.4 lib/spree/testing_support/blacklist_urls.rb
solidus_core-3.4.6 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.0.3 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.1.2 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.2.2 lib/spree/testing_support/blacklist_urls.rb
solidus_core-3.4.5 lib/spree/testing_support/blacklist_urls.rb
solidus_core-4.2.1 lib/spree/testing_support/blacklist_urls.rb