mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
# 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, js: true do
|
||||
fab!(:user) { Fabricate(:user) }
|
||||
fab!(:admin) { Fabricate(:admin) }
|
||||
let(:user_page) { PageObjects::Pages::User.new }
|
||||
|
||||
before do
|
||||
sign_in(admin)
|
||||
end
|
||||
before { sign_in(admin) }
|
||||
|
||||
context 'for warnings' do
|
||||
context "for warnings" do
|
||||
fab!(:topic) { Fabricate(:private_message_topic, user: admin, recipient: user) }
|
||||
fab!(:user_warning) { UserWarning.create!(user: user, created_by: admin, topic: topic) }
|
||||
|
||||
it "should display the right link to user's warnings with the right count in text" do
|
||||
user_page
|
||||
.visit(user)
|
||||
.click_staff_info_warnings_link(warnings_count: 1)
|
||||
user_page.visit(user).click_staff_info_warnings_link(warnings_count: 1)
|
||||
|
||||
expect(user_page).to have_warning_messages_path(user)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user