From 27b94a96cd36f2b1eeb270266630bc1965916cd8 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Tue, 16 Jan 2024 12:38:14 +0100 Subject: [PATCH] Disable admin preview for extensions test apps The new admin is far from complete and existing extensions will fail if we test them with the new default admin that we generate apps with. It can be enabled by setting ADMIN_PREVIEW=true in your test env. --- core/lib/spree/testing_support/common_rake.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/core/lib/spree/testing_support/common_rake.rb b/core/lib/spree/testing_support/common_rake.rb index 02976918685..442cfda8b14 100644 --- a/core/lib/spree/testing_support/common_rake.rb +++ b/core/lib/spree/testing_support/common_rake.rb @@ -31,6 +31,7 @@ def initialize 'solidus:install', Dir.pwd, # use the current dir as Rails.root "--auto-accept", + "--admin-preview=#{ENV.fetch('ADMIN_PREVIEW', 'false')}", "--authentication=none", "--payment-method=none", "--migrate=false",