A platform for community discussion. Free, open, simple.
DEV: Remove unnecessary `js: true` options from specs (#24463)
Jarek Radosz89bd2b7df081
diff --git a/plugins/chat/spec/system/chat/composer/channel_spec.rb b/plugins/chat/spec/system/chat/composer/channel_spec.rbindex e11832af474..2c18551ec79 100644--- a/plugins/chat/spec/system/chat/composer/channel_spec.rb+++ b/plugins/chat/spec/system/chat/composer/channel_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-RSpec.describe "Chat | composer | channel", type: :system, js: true do+RSpec.describe "Chat | composer | channel", type: :system dofab!(:channel_1) { Fabricate(:chat_channel) }fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }fab!(:current_user) { Fabricate(:admin) }diff --git a/plugins/chat/spec/system/chat/composer/thread_spec.rb b/plugins/chat/spec/system/chat/composer/thread_spec.rbindex 591300be10f..1cbad5f92d2 100644--- a/plugins/chat/spec/system/chat/composer/thread_spec.rb+++ b/plugins/chat/spec/system/chat/composer/thread_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-RSpec.describe "Chat | composer | thread", type: :system, js: true do+RSpec.describe "Chat | composer | thread", type: :system dofab!(:channel_1) { Fabricate(:chat_channel, threading_enabled: true) }fab!(:current_user) { Fabricate(:admin) }fab!(:message_1) dodiff --git a/plugins/chat/spec/system/chat_summarization_spec.rb b/plugins/chat/spec/system/chat_summarization_spec.rbindex bc3ebea4e26..d84dda16f9c 100644--- a/plugins/chat/spec/system/chat_summarization_spec.rb+++ b/plugins/chat/spec/system/chat_summarization_spec.rb@@ -1,16 +1,12 @@# frozen_string_literal: true-RSpec.describe "Summarize a channel since your last visit", type: :system, js: true do+RSpec.describe "Summarize a channel since your last visit", type: :system dofab!(:current_user) { Fabricate(:user) }fab!(:group)- let(:plugin) { Plugin::Instance.new }-fab!(:channel) { Fabricate(:chat_channel) }-fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel) }-let(:chat) { PageObjects::Pages::Chat.new }-+ let(:plugin) { Plugin::Instance.new }let(:summarization_result) { { summary: "This is a summary", chunks: [] } }before dodiff --git a/spec/system/category_topics_spec.rb b/spec/system/category_topics_spec.rbindex 5a2c477eb00..9c201e63b11 100644--- a/spec/system/category_topics_spec.rb+++ b/spec/system/category_topics_spec.rb@@ -1,12 +1,12 @@# frozen_string_literal: true-describe "Viewing top topics on categories page", type: :system, js: true do+describe "Viewing top topics on categories page", type: :system dofab!(:user)- let(:category_list) { PageObjects::Components::CategoryList.new }- let(:topic_view) { PageObjects::Components::TopicView.new }fab!(:category)fab!(:topic) { Fabricate(:topic, category: category) }fab!(:post) { Fabricate(:post, topic: topic) }+ let(:category_list) { PageObjects::Components::CategoryList.new }+ let(:topic_view) { PageObjects::Components::TopicView.new }it "displays and updates new counter" doskip(<<~TEXT)diff --git a/spec/system/composer/post_validation_spec.rb b/spec/system/composer/post_validation_spec.rbindex 463b8f58eca..557de367b28 100644--- a/spec/system/composer/post_validation_spec.rb+++ b/spec/system/composer/post_validation_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-describe "Composer Post Validations", type: :system, js: true do+describe "Composer Post Validations", type: :system dofab!(:tl0_user) { Fabricate(:user, trust_level: 0) }fab!(:tl1_user) { Fabricate(:user, trust_level: 1) }fab!(:tl2_user) { Fabricate(:user, trust_level: 2) }diff --git a/spec/system/composer/template_validation_spec.rb b/spec/system/composer/template_validation_spec.rbindex 73a5338cdce..719b065ae76 100644--- a/spec/system/composer/template_validation_spec.rb+++ b/spec/system/composer/template_validation_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-describe "Composer Form Template Validations", type: :system, js: true do+describe "Composer Form Template Validations", type: :system dofab!(:user)fab!(:form_template) doFabricate(diff --git a/spec/system/composer_uploads_spec.rb b/spec/system/composer_uploads_spec.rbindex 1b8d176fb92..e605a241e13 100644--- a/spec/system/composer_uploads_spec.rb+++ b/spec/system/composer_uploads_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-describe "Uploading files in the composer", type: :system, js: true do+describe "Uploading files in the composer", type: :system dofab!(:current_user) { Fabricate(:user) }let(:modal) { PageObjects::Modals::Base.new }diff --git a/spec/system/flagging_post_spec.rb b/spec/system/flagging_post_spec.rbindex 707a6a0fe54..d1cb2f20e47 100644--- a/spec/system/flagging_post_spec.rb+++ b/spec/system/flagging_post_spec.rb@@ -1,6 +1,6 @@# frozen_string_literal: true-describe "Flagging post", type: :system, js: true do+describe "Flagging post", type: :system dofab!(:current_user) { Fabricate(:admin) }fab!(:first_post) { Fabricate(:post) }fab!(:post_to_flag) { Fabricate(:post, topic: first_post.topic) }