mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:17:16 +08:00
DEV: correctly tests text is rendered in replies (#20845)
This commit is contained in:
@ -189,7 +189,7 @@ RSpec.describe "Chat channel", type: :system, js: true do
|
||||
end
|
||||
end
|
||||
|
||||
context "when replying to message that has tags" do
|
||||
context "when replying to message that has HTML tags" do
|
||||
fab!(:other_user) { Fabricate(:user) }
|
||||
fab!(:message_2) do
|
||||
Fabricate(
|
||||
@ -208,12 +208,10 @@ RSpec.describe "Chat channel", type: :system, js: true do
|
||||
sign_in(current_user)
|
||||
end
|
||||
|
||||
xit "escapes the reply-to line" do
|
||||
it "renders text in the reply-to" do
|
||||
chat.visit_channel(channel_1)
|
||||
|
||||
expect(find(".chat-reply .chat-reply__excerpt")["innerHTML"].strip).to eq(
|
||||
"<mark>not marked</mark>",
|
||||
)
|
||||
expect(find(".chat-reply .chat-reply__excerpt")["innerHTML"].strip).to eq("not marked")
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user