mirror of
https://github.com/discourse/discourse.git
synced 2026-08-17 16:35:03 -05:00
DEV: makes user-card-chat-button uses glimmer (#22496)
This commit also namespaces the component to now be: `<Chat::UserCardButton />`
This commit is contained in:
@@ -10,13 +10,13 @@ RSpec.describe "User card", type: :system do
|
||||
|
||||
shared_examples "not showing chat button" do
|
||||
it "doesn’t show the chat buttton" do
|
||||
expect(page).to have_no_css(".user-card-chat-btn")
|
||||
expect(page).to have_no_css(".chat-user-card-btn")
|
||||
end
|
||||
end
|
||||
|
||||
shared_examples "showing chat button" do
|
||||
it "shows the chat buttton" do
|
||||
expect(page).to have_css(".user-card-chat-btn")
|
||||
expect(page).to have_css(".chat-user-card-btn")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -49,7 +49,7 @@ RSpec.describe "User card", type: :system do
|
||||
include_examples "showing chat button"
|
||||
|
||||
context "when clicking chat button" do
|
||||
before { find(".user-card-chat-btn").click }
|
||||
before { find(".chat-user-card-btn").click }
|
||||
|
||||
it "opens correct channel" do
|
||||
# at this point the ChatChannel is not created yet
|
||||
|
||||
Reference in New Issue
Block a user