From 3d87485cd3b9d145c528e3c51d8213bdf489cc86 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 8 Oct 2021 11:06:54 +0200 Subject: [PATCH] Move shopping_spec.rb as a system spec - Move the file to `spec/system/` - Replace `require 'spec_helper'` by `require 'system_helper'` - replace `feature` with `describe` --- spec/{features => system}/consumer/shopping/shopping_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename spec/{features => system}/consumer/shopping/shopping_spec.rb (99%) diff --git a/spec/features/consumer/shopping/shopping_spec.rb b/spec/system/consumer/shopping/shopping_spec.rb similarity index 99% rename from spec/features/consumer/shopping/shopping_spec.rb rename to spec/system/consumer/shopping/shopping_spec.rb index 51b1a93b81..05ca0c6966 100644 --- a/spec/features/consumer/shopping/shopping_spec.rb +++ b/spec/system/consumer/shopping/shopping_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'spec_helper' +require 'system_helper' describe "As a consumer I want to shop with a distributor", js: true do include AuthenticationHelper @@ -620,7 +620,7 @@ describe "As a consumer I want to shop with a distributor", js: true do def expect_out_of_stock_behavior # Shows an "out of stock" modal, with helpful user feedback within(".out-of-stock-modal") do - expect(page).to have_content I18n.t('js.out_of_stock.out_of_stock_text') + expect(page).to have_content I18n.t('js.out_of_stock.out_of_stock_text').strip end # Removes the item from the client-side cart and marks the variant as unavailable