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:
Joffrey JAFFEUX
2023-07-10 14:04:26 +02:00
committed by GitHub
parent 9830c40386
commit 8270d76f16
9 changed files with 89 additions and 82 deletions
+3 -3
View File
@@ -10,13 +10,13 @@ RSpec.describe "User card", type: :system do
shared_examples "not showing chat button" do
it "doesnt 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