mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
DEV: Remove assertion causing test to be flaky (#25069)
Why this change? The assertion does not make use of Capybara's waiting strategy and is not really testing anything meaningful by asserting for the src of the img element.
This commit is contained in:
parent
c6cb319671
commit
ea910e291b
@ -25,10 +25,10 @@ RSpec.describe "User status | sidebar", type: :system do
|
||||
context "when changing status" do
|
||||
it "updates status" do
|
||||
visit("/")
|
||||
|
||||
current_user.set_status!("offline", "tooth")
|
||||
|
||||
expect(page).to have_css('.user-status-message .emoji[alt="tooth"]')
|
||||
expect(find(".user-status-message .emoji")["src"]).to include("tooth")
|
||||
expect(page).to have_css('.user-status-message img.emoji[alt="tooth"]')
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user