DEV: Remove superfluous `js: true` metadata (#21960)

Why this change?

It is very unlikely that we need to ever JS for system tests considering
that we rely on a JS framework on the frontend.
This commit is contained in:
Alan Guo Xiang Tan 2023-06-07 10:26:58 +09:00 committed by GitHub
parent 44446afe58
commit 41f8bff2c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
103 changed files with 108 additions and 114 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Anonymous", type: :system, js: true do
RSpec.describe "Anonymous", type: :system do
fab!(:topic) { Fabricate(:topic) }
before { chat_system_bootstrap }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Archive channel", type: :system, js: true do
RSpec.describe "Archive channel", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Bookmark message", type: :system, js: true do
RSpec.describe "Bookmark message", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Browse page", type: :system, js: true do
RSpec.describe "Browse page", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel - Info - About page", type: :system, js: true do
RSpec.describe "Channel - Info - About page", type: :system do
fab!(:channel_1) { Fabricate(:category_channel) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Info pages", type: :system, js: true do
RSpec.describe "Info pages", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel) { PageObjects::Pages::ChatChannel.new }
fab!(:current_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel - Info - Members page", type: :system, js: true do
RSpec.describe "Channel - Info - Members page", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
fab!(:current_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel message selection", type: :system, js: true do
RSpec.describe "Channel message selection", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel message selection", type: :system, js: true do
RSpec.describe "Channel message selection", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel selector modal", type: :system, js: true do
RSpec.describe "Channel selector modal", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Channel - Info - Settings page", type: :system, js: true do
RSpec.describe "Channel - Info - Settings page", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:category_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Channel thread message echoing", type: :system, js: true do
describe "Channel thread message echoing", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat | composer | shortcuts | channel", type: :system, js: true do
RSpec.describe "Chat | composer | shortcuts | channel", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:current_user) { Fabricate(:admin) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat | composer | shortcuts | thread", type: :system, js: true do
RSpec.describe "Chat | composer | shortcuts | thread", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel, threading_enabled: true) }
fab!(:current_user) { Fabricate(:admin) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat channel", type: :system, js: true do
RSpec.describe "Chat channel", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat composer draft", type: :system, js: true do
RSpec.describe "Chat composer draft", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat composer", type: :system, js: true do
RSpec.describe "Chat composer", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, user: current_user, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat message - channel", type: :system, js: true do
RSpec.describe "Chat message - channel", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat message - thread", type: :system, js: true do
RSpec.describe "Chat message - thread", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Chat message onebox", type: :system, js: true do
RSpec.describe "Chat message onebox", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Closed channel", type: :system, js: true do
RSpec.describe "Closed channel", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Create channel", type: :system, js: true do
RSpec.describe "Create channel", type: :system do
fab!(:category_1) { Fabricate(:category) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Dates separators", type: :system, js: true do
RSpec.describe "Dates separators", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Deleted channel", type: :system, js: true do
RSpec.describe "Deleted channel", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Deleted message", type: :system, js: true do
RSpec.describe "Deleted message", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }
let(:sidebar_component) { PageObjects::Components::Sidebar.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Document title", type: :system, js: true do
RSpec.describe "Document title", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Draft message", type: :system, js: true do
RSpec.describe "Draft message", type: :system do
fab!(:current_user) { Fabricate(:admin) }
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Drawer", type: :system, js: true do
RSpec.describe "Drawer", type: :system do
fab!(:current_user) { Fabricate(:admin) }
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Edited message", type: :system, js: true do
RSpec.describe "Edited message", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Flag message", type: :system, js: true do
RSpec.describe "Flag message", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,8 +1,6 @@
# frozen_string_literal: true
describe "Using #hashtag autocompletion to search for and lookup channels",
type: :system,
js: true do
describe "Using #hashtag autocompletion to search for and lookup channels", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:channel1) { Fabricate(:chat_channel, name: "Music Lounge", slug: "music") }
fab!(:channel2) { Fabricate(:chat_channel, name: "Random", slug: "random") }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "JIT messages", type: :system, js: true do
RSpec.describe "JIT messages", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Kick user from chat channel", type: :system, js: true do
describe "Kick user from chat channel", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:channel_2) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "List channels | mobile", type: :system, js: true, mobile: true do
RSpec.describe "List channels | mobile", type: :system, mobile: true do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "List channels | no sidebar", type: :system, js: true do
RSpec.describe "List channels | no sidebar", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "List channels | sidebar", type: :system, js: true do
RSpec.describe "List channels | sidebar", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Mentions warnings", type: :system, js: true do
RSpec.describe "Mentions warnings", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Message errors", type: :system, js: true do
RSpec.describe "Message errors", type: :system do
fab!(:current_user) { Fabricate(:admin) }
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Message notifications - mobile", type: :system, js: true, mobile: true do
RSpec.describe "Message notifications - mobile", type: :system, mobile: true do
fab!(:current_user) { Fabricate(:user) }
let!(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Message notifications - with sidebar", type: :system, js: true do
RSpec.describe "Message notifications - with sidebar", type: :system do
fab!(:current_user) { Fabricate(:user) }
let!(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Thread indicator for chat messages", type: :system, js: true do
describe "Thread indicator for chat messages", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Message user info", type: :system, js: true do
RSpec.describe "Message user info", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:category_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Move message to channel", type: :system, js: true do
RSpec.describe "Move message to channel", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Navigation", type: :system, js: true do
RSpec.describe "Navigation", type: :system do
fab!(:category) { Fabricate(:category) }
fab!(:topic) { Fabricate(:topic) }
fab!(:post) { Fabricate(:post, topic: topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "React to message", type: :system, js: true do
RSpec.describe "React to message", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }
fab!(:category_channel_1) { Fabricate(:category_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Read only", type: :system, js: true do
RSpec.describe "Read only", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Reply to message - channel - drawer", type: :system, js: true do
RSpec.describe "Reply to message - channel - drawer", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }
let(:thread_page) { PageObjects::Pages::ChatThread.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Reply to message - channel - full page", type: :system, js: true do
RSpec.describe "Reply to message - channel - full page", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }
let(:thread_page) { PageObjects::Pages::ChatThread.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Reply to message - channel - mobile", type: :system, js: true, mobile: true do
RSpec.describe "Reply to message - channel - mobile", type: :system, mobile: true do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }
let(:thread_page) { PageObjects::Pages::ChatThread.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Reply to message - smoke", type: :system, js: true do
RSpec.describe "Reply to message - smoke", type: :system do
let(:chat_page) { PageObjects::Pages::Chat.new }
let(:channel_page) { PageObjects::Pages::ChatChannel.new }
let(:thread_page) { PageObjects::Pages::ChatThread.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Reviewables", type: :system, js: true do
describe "Reviewables", type: :system do
fab!(:current_user) { Fabricate(:admin) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Shortcuts | drawer", type: :system, js: true do
RSpec.describe "Shortcuts | drawer", type: :system do
fab!(:user_1) { Fabricate(:admin) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:channel_2) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Shortcuts | full page", type: :system, js: true do
RSpec.describe "Shortcuts | full page", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:current_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Shortcuts | mark all read", type: :system, js: true do
RSpec.describe "Shortcuts | mark all read", type: :system do
fab!(:user_1) { Fabricate(:admin) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:channel_2) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Shortcuts | sidebar", type: :system, js: true do
RSpec.describe "Shortcuts | sidebar", type: :system do
fab!(:current_user) { Fabricate(:admin) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Sidebar navigation menu", type: :system, js: true do
RSpec.describe "Sidebar navigation menu", type: :system do
let(:sidebar_page) { PageObjects::Pages::Sidebar.new }
let(:sidebar_component) { PageObjects::Components::Sidebar.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Navigation", type: :system, js: true do
RSpec.describe "Navigation", type: :system do
fab!(:category) { Fabricate(:category) }
fab!(:topic) { Fabricate(:topic) }
fab!(:post) { Fabricate(:post, topic: topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Silenced user", type: :system, js: true do
RSpec.describe "Silenced user", type: :system do
fab!(:channel_1) { Fabricate(:category_channel) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Single thread in side panel", type: :system, js: true do
describe "Single thread in side panel", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat_page) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Thread list in side panel | drawer", type: :system, js: true do
describe "Thread list in side panel | drawer", type: :system do
fab!(:current_user) { Fabricate(:admin) }
fab!(:channel) { Fabricate(:chat_channel) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Thread list in side panel | full page", type: :system, js: true do
describe "Thread list in side panel | full page", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel) { Fabricate(:chat_channel, threading_enabled: true) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Thread tracking state | drawer", type: :system, js: true do
describe "Thread tracking state | drawer", type: :system do
fab!(:current_user) { Fabricate(:admin) }
fab!(:channel) { Fabricate(:chat_channel, threading_enabled: true) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Thread tracking state | full page", type: :system, js: true do
describe "Thread tracking state | full page", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel) { Fabricate(:chat_channel, threading_enabled: true) }
fab!(:other_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Quoting chat message transcripts", type: :system, js: true do
RSpec.describe "Quoting chat message transcripts", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:admin) { Fabricate(:admin) }
fab!(:chat_channel_1) { Fabricate(:chat_channel) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Unfollow dm channel", type: :system, js: true do
RSpec.describe "Unfollow dm channel", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:other_user) { Fabricate(:user) }
fab!(:dm_channel_1) { Fabricate(:direct_message_channel, users: [current_user, other_user]) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Update last read", type: :system, js: true do
RSpec.describe "Update last read", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:first_unread) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Uploading files in chat messages", type: :system, js: true do
describe "Uploading files in chat messages", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:message_1) { Fabricate(:chat_message, chat_channel: channel_1) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "User card", type: :system, js: true do
RSpec.describe "User card", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:topic_1) { Fabricate(:topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "User chat preferences", type: :system, js: true do
RSpec.describe "User chat preferences", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "User menu notifications | sidebar", type: :system, js: true do
RSpec.describe "User menu notifications | sidebar", type: :system do
fab!(:current_user) { Fabricate(:user) }
let(:chat) { PageObjects::Pages::Chat.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "User presence", type: :system, js: true do
RSpec.describe "User presence", type: :system do
fab!(:channel_1) { Fabricate(:chat_channel) }
fab!(:current_user) { Fabricate(:user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "User status | sidebar", type: :system, js: true do
RSpec.describe "User status | sidebar", type: :system do
fab!(:current_user) { Fabricate(:user) }
fab!(:dm_channel_1) { Fabricate(:direct_message_channel, users: [current_user]) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Visit channel", type: :system, js: true do
RSpec.describe "Visit channel", type: :system do
fab!(:category) { Fabricate(:category) }
fab!(:topic) { Fabricate(:topic) }
fab!(:post) { Fabricate(:post, topic: topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Local dates", type: :system, js: true do
describe "Local dates", type: :system do
fab!(:topic) { Fabricate(:topic) }
fab!(:user) { Fabricate(:user) }

View File

@ -393,13 +393,12 @@ RSpec.configure do |config|
last_driven_by = nil
config.before(:each, type: :system) do |example|
if example.metadata[:js]
driver = [:selenium]
driver << :mobile if example.metadata[:mobile]
driver << :chrome
driver << :headless unless ENV["SELENIUM_HEADLESS"] == "0"
driven_by driver.join("_").to_sym
end
setup_system_test
end

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Admin Customize Form Templates", type: :system, js: true do
describe "Admin Customize Form Templates", type: :system do
let(:form_template_page) { PageObjects::Pages::FormTemplate.new }
let(:ace_editor) { PageObjects::Components::AceEditor.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Admin Customize Themes", type: :system, js: true do
describe "Admin Customize Themes", type: :system do
fab!(:color_scheme) { Fabricate(:color_scheme) }
fab!(:theme) { Fabricate(:theme) }
fab!(:admin) { Fabricate(:admin) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Bookmarking posts and topics", type: :system, js: true do
describe "Bookmarking posts and topics", type: :system do
fab!(:topic) { Fabricate(:topic) }
fab!(:user) { Fabricate(:user) }
fab!(:post) { Fabricate(:post, topic: topic, raw: "This is some post to bookmark") }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Edit Category", type: :system, js: true do
describe "Edit Category", type: :system do
fab!(:color_scheme) { Fabricate(:color_scheme) }
fab!(:theme) { Fabricate(:theme) }
fab!(:admin) { Fabricate(:admin) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Composer Form Templates", type: :system, js: true do
describe "Composer Form Templates", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:form_template_1) do
Fabricate(:form_template, name: "Bug Reports", template: "- type: checkbox")

View File

@ -1,8 +1,6 @@
# frozen_string_literal: true
describe "Default to Subcategory when parent Category doesn't allow posting",
type: :system,
js: true do
describe "Default to Subcategory when parent Category doesn't allow posting", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:group) { Fabricate(:group) }
fab!(:group_user) { Fabricate(:group_user, user: user, group: group) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Composer don't feed the trolls popup", type: :system, js: true do
describe "Composer don't feed the trolls popup", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:troll) { Fabricate(:user) }
fab!(:topic) { Fabricate(:topic, user: user) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Composer using review_media", type: :system, js: true do
describe "Composer using review_media", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:topic) { Fabricate(:topic, category: Category.find(SiteSetting.uncategorized_category_id)) }
fab!(:post) { Fabricate(:post, topic: topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Custom sidebar sections", type: :system, js: true do
describe "Custom sidebar sections", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:admin) { Fabricate(:admin) }
let(:section_modal) { PageObjects::Modals::SidebarSectionForm.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Navigating with breadcrumbs", type: :system, js: true do
describe "Navigating with breadcrumbs", type: :system do
let(:discovery) { PageObjects::Pages::Discovery.new }
fab!(:category1) { Fabricate(:category) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Production mode debug shims", type: :system, js: true do
describe "Production mode debug shims", type: :system do
it "can successfully print a deprecation message after applying prod shims" do
visit("/latest")
expect(find("#main-outlet-wrapper")).to be_visible

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Emoji deny list", type: :system, js: true do
describe "Emoji deny list", type: :system do
let(:topic_page) { PageObjects::Pages::Topic.new }
let(:composer) { PageObjects::Components::Composer.new }
let(:emoji_picker) { PageObjects::Components::EmojiPicker.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Fast edit", type: :system, js: true do
describe "Fast edit", type: :system do
let(:topic_page) { PageObjects::Pages::Topic.new }
let(:fast_editor) { PageObjects::Components::FastEditor.new }
fab!(:topic) { Fabricate(:topic) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Filtering topics", type: :system, js: true do
describe "Filtering topics", type: :system do
fab!(:user) { Fabricate(:user) }
let(:topic_list) { PageObjects::Components::TopicList.new }
let(:topic_query_filter) { PageObjects::Components::TopicQueryFilter.new }

View File

@ -1,8 +1,7 @@
# frozen_string_literal: true
describe "Using #hashtag autocompletion to search for and lookup categories and tags",
type: :system,
js: true do
type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:category) do
Fabricate(:category, name: "Cool Category", slug: "cool-cat", topic_count: 3234)

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Network Disconnected", type: :system, js: true do
RSpec.describe "Network Disconnected", type: :system do
fab!(:current_user) { Fabricate(:user) }
before { skip(<<~TEXT) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Reviewables", type: :system, js: true do
describe "Reviewables", type: :system do
let(:review_page) { PageObjects::Pages::Review.new }
fab!(:admin) { Fabricate(:admin) }
fab!(:theme) { Fabricate(:theme) }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Search", type: :system, js: true do
describe "Search", type: :system do
let(:search_page) { PageObjects::Pages::Search.new }
fab!(:topic) { Fabricate(:topic) }
fab!(:post) { Fabricate(:post, topic: topic, raw: "This is a test post in a test topic") }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Tag notification level", type: :system, js: true do
describe "Tag notification level", type: :system do
let(:tags_page) { PageObjects::Pages::Tag.new }
let(:select_kit) { PageObjects::Components::SelectKit.new(".tag-notifications-button") }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Tag synonyms", type: :system, js: true do
describe "Tag synonyms", type: :system do
let(:tags_page) { PageObjects::Pages::Tag.new }
fab!(:tag_1) { Fabricate(:tag, name: "design") }
fab!(:tag_2) { Fabricate(:tag, name: "art") }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "Viewing user staff info as an admin", type: :system, js: true do
describe "Viewing user staff info as an admin", type: :system do
fab!(:user) { Fabricate(:user) }
fab!(:admin) { Fabricate(:admin) }
let(:user_page) { PageObjects::Pages::User.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "User preferences for Interface", type: :system, js: true do
describe "User preferences for Interface", type: :system do
fab!(:user) { Fabricate(:user) }
let(:user_preferences_page) { PageObjects::Pages::UserPreferences.new }
let(:user_preferences_interface_page) { PageObjects::Pages::UserPreferencesInterface.new }

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
describe "User page navigation menu", type: :system, js: true do
describe "User page navigation menu", type: :system do
fab!(:user) { Fabricate(:user) }
let(:everyone_group) { Group[:everyone] }
let(:user_preferences_page) { PageObjects::Pages::UserPreferences.new }

View File

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

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
RSpec.describe "Viewing a category", type: :system, js: true do
RSpec.describe "Viewing a category", type: :system do
fab!(:category) { Fabricate(:category) }
fab!(:user) { Fabricate(:user) }
let(:category_page) { PageObjects::Pages::Category.new }

Some files were not shown because too many files have changed in this diff Show More