From 241b307762f5d5d89e93563c47e11a7aa69be573 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 8 Jun 2023 11:34:05 +1000 Subject: [PATCH] Fix typos --- spec/support/request/ui_component_helper.rb | 2 +- spec/system/consumer/white_label_spec.rb | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/support/request/ui_component_helper.rb b/spec/support/request/ui_component_helper.rb index 5d850de34c..ba2f997d64 100644 --- a/spec/support/request/ui_component_helper.rb +++ b/spec/support/request/ui_component_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module UIComponentHelper - def browser_as_small + def browse_as_small Capybara.current_session.current_window .resize_to(640, 480) end diff --git a/spec/system/consumer/white_label_spec.rb b/spec/system/consumer/white_label_spec.rb index 0f8c6bbc79..083b89256e 100644 --- a/spec/system/consumer/white_label_spec.rb +++ b/spec/system/consumer/white_label_spec.rb @@ -33,7 +33,7 @@ describe 'White label setting' do shared_examples "hides the OFN navigation for mobile view as well" do context "mobile view" do before do - browser_as_small + browse_as_small end after do @@ -53,10 +53,10 @@ describe 'White label setting' do end end - shared_examples "does not hides the OFN navigation for mobile view as well" do + shared_examples "does not hide the OFN navigation for mobile view as well" do context "mobile view" do before do - browser_as_small + browse_as_small end after do @@ -86,7 +86,7 @@ describe 'White label setting' do expect(page).to have_selector ofn_navigation end - it_behaves_like "does not hides the OFN navigation for mobile view as well" + it_behaves_like "does not hide the OFN navigation for mobile view as well" end context "for cart path" do @@ -98,7 +98,7 @@ describe 'White label setting' do expect(page).to have_selector ofn_navigation end - it_behaves_like "does not hides the OFN navigation for mobile view as well" + it_behaves_like "does not hide the OFN navigation for mobile view as well" end context "for root path" do @@ -110,7 +110,7 @@ describe 'White label setting' do expect(page).to have_selector ofn_navigation end - it_behaves_like "does not hides the OFN navigation for mobile view as well" + it_behaves_like "does not hide the OFN navigation for mobile view as well" end end @@ -142,7 +142,7 @@ describe 'White label setting' do expect(page).to have_selector ofn_navigation end - it_behaves_like "does not hides the OFN navigation for mobile view as well" + it_behaves_like "does not hide the OFN navigation for mobile view as well" end end