diff --git a/.rubocop_styleguide.yml b/.rubocop_styleguide.yml index 411fae7022..0840c14fc5 100644 --- a/.rubocop_styleguide.yml +++ b/.rubocop_styleguide.yml @@ -202,7 +202,8 @@ Metrics/BlockLength: "namespace", "resource", "resources", - "scenario" + "scenario", + "shared_examples", ] Metrics/BlockNesting: diff --git a/spec/system/consumer/shopping/checkout_auth_spec.rb b/spec/system/consumer/shopping/checkout_auth_spec.rb index 26fa54c8bb..79ecdae271 100644 --- a/spec/system/consumer/shopping/checkout_auth_spec.rb +++ b/spec/system/consumer/shopping/checkout_auth_spec.rb @@ -57,14 +57,14 @@ describe "As a consumer I want to check out my cart", js: true do fill_in "Password", with: user.password within(".login-modal") { click_button 'Login' } end - + context "and populating user details on (#{checkout_type})", if: checkout_type.eql?("legacy_checkout") do it "toggles the Details section" do expect(page).to have_content "Your details" page.find(:css, "i.ofn-i_052-point-down").click end end - + context "and populating user details on (#{checkout_type})", if: checkout_type.eql?("split_checkout") do it "currently redirects to the homepage" do # currently redirects to the homepage due to bug #8894