mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 06:59:06 +08:00
DEV: Remove unnecessary js: true
options from specs (#24463)
This commit is contained in:
parent
8968887e24
commit
89bd2b7df0
@ -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) }
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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) }
|
||||
|
@ -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(
|
||||
|
@ -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 }
|
||||
|
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user