DEV: Remove unnecessary js: true options from specs (#24463)

This commit is contained in:
Jarek Radosz 2023-11-20 17:22:14 +01:00 committed by GitHub
parent 8968887e24
commit 89bd2b7df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 15 deletions

View File

@ -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 do
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }
fab!(:current_user) { Fabricate(:admin) }

View File

@ -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 do
fab!(:channel_1) { Fabricate(:chat_channel, threading_enabled: true) }
fab!(:current_user) { Fabricate(:admin) }
fab!(:message_1) do

View File

@ -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 do
fab!(: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 do

View File

@ -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 do
fab!(: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" do
skip(<<~TEXT)

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Composer Post Validations", type: :system, js: true do
describe "Composer Post Validations", type: :system do
fab!(:tl0_user) { Fabricate(:user, trust_level: 0) }
fab!(:tl1_user) { Fabricate(:user, trust_level: 1) }
fab!(:tl2_user) { Fabricate(:user, trust_level: 2) }

View File

@ -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 do
fab!(:user)
fab!(:form_template) do
Fabricate(

View File

@ -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 do
fab!(:current_user) { Fabricate(:user) }
let(:modal) { PageObjects::Modals::Base.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Flagging post", type: :system, js: true do
describe "Flagging post", type: :system do
fab!(:current_user) { Fabricate(:admin) }
fab!(:first_post) { Fabricate(:post) }
fab!(:post_to_flag) { Fabricate(:post, topic: first_post.topic) }