From 17deb79fcb20161e5facddec67a03e88187db278 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 24 Jan 2023 15:41:01 +0100 Subject: [PATCH] DEV: Fix random typos (#19973) --- .../discourse/tests/acceptance/composer-test.js | 6 +++--- app/controllers/uploads_controller.rb | 2 +- plugins/chat/spec/system/navigating_to_message_spec.rb | 8 ++++---- plugins/chat/spec/system/shortcuts/chat_composer_spec.rb | 4 ++-- plugins/chat/spec/system/shortcuts/sidebar_spec.rb | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js index f38fdbaf414..e421601e62c 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/composer-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/composer-test.js @@ -1269,7 +1269,7 @@ acceptance("Composer - Default category", function (needs) { name: "General", slug: "general", permission: 1, - ltopic_template: null, + topic_template: null, }, { id: 2, @@ -1306,7 +1306,7 @@ acceptance("Composer - Uncategorized category", function (needs) { name: "General", slug: "general", permission: 1, - ltopic_template: null, + topic_template: null, }, { id: 2, @@ -1337,7 +1337,7 @@ acceptance("Composer - default category not set", function (needs) { name: "General", slug: "general", permission: 1, - ltopic_template: null, + topic_template: null, }, { id: 2, diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 218b5ae88dd..b71240638ee 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -306,7 +306,7 @@ class UploadsController < ApplicationController private - # We can pre-emptively check size for attachments, but not for images + # We can preemptively check size for attachments, but not for images # as they may be further reduced in size by UploadCreator (at this point # they may have already been reduced in size by preprocessors) def file_size_too_big?(file_name, file_size) diff --git a/plugins/chat/spec/system/navigating_to_message_spec.rb b/plugins/chat/spec/system/navigating_to_message_spec.rb index 7dc60d697e2..64d6f75ccba 100644 --- a/plugins/chat/spec/system/navigating_to_message_spec.rb +++ b/plugins/chat/spec/system/navigating_to_message_spec.rb @@ -50,7 +50,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do ) end - it "highglights the correct message" do + it "highlights the correct message" do chat_page.visit_channel(channel_1) click_link(link) @@ -83,7 +83,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do channel_2.add(current_user) end - it "highglights the correct message" do + it "highlights the correct message" do chat_page.visit_channel(channel_2) click_link(link) @@ -94,7 +94,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do end context "when navigating directly to a message link" do - it "highglights the correct message" do + it "highlights the correct message" do visit("/chat/channel/#{channel_1.id}/-?messageId=#{first_message.id}") expect(page).to have_css( @@ -136,7 +136,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do ) end - it "highglights the correct message" do + it "highlights the correct message" do visit("/") chat_page.open_from_header chat_drawer_page.open_channel(channel_1) diff --git a/plugins/chat/spec/system/shortcuts/chat_composer_spec.rb b/plugins/chat/spec/system/shortcuts/chat_composer_spec.rb index 7126ffa8322..dddfa46baa9 100644 --- a/plugins/chat/spec/system/shortcuts/chat_composer_spec.rb +++ b/plugins/chat/spec/system/shortcuts/chat_composer_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -RSpec.describe "Shorcuts | chat composer", type: :system, js: true do +RSpec.describe "Shortcuts | chat composer", type: :system, js: true do fab!(:channel_1) { Fabricate(:chat_channel) } fab!(:current_user) { Fabricate(:user) } @@ -15,7 +15,7 @@ RSpec.describe "Shorcuts | chat composer", type: :system, js: true do end context "when using meta + l" do - xit "handles insert link shorcut" do + xit "handles insert link shortcut" do end end diff --git a/plugins/chat/spec/system/shortcuts/sidebar_spec.rb b/plugins/chat/spec/system/shortcuts/sidebar_spec.rb index ccf6c298e50..65427075c0f 100644 --- a/plugins/chat/spec/system/shortcuts/sidebar_spec.rb +++ b/plugins/chat/spec/system/shortcuts/sidebar_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -RSpec.describe "Shorcuts | sidebar", type: :system, js: true do +RSpec.describe "Shortcuts | sidebar", type: :system, js: true do fab!(:current_user) { Fabricate(:admin) } let(:chat) { PageObjects::Pages::Chat.new }