No more flakes and make us green again (#2771)
* No more flakes and see green * remove extra id * try again * again * again * Fix Avatar test and make snap test more robust * Remove extra attribute
This commit is contained in:
@ -127,8 +127,8 @@ export const Stream = ({ className = '' }: { className?: string }) => {
|
||||
return (
|
||||
<div
|
||||
className="absolute inset-0 z-0"
|
||||
data-testid="stream"
|
||||
id="stream"
|
||||
data-testid="stream"
|
||||
onMouseUp={handleMouseUp}
|
||||
onMouseDown={handleMouseDown}
|
||||
onContextMenu={(e) => e.preventDefault()}
|
||||
|
@ -20,6 +20,12 @@ const UserSidebarMenu = ({ user }: { user?: User }) => {
|
||||
const navigate = useNavigate()
|
||||
const send = useSettingsAuthContext()?.auth?.send
|
||||
|
||||
// This image host goes down sometimes. We will instead rewrite the
|
||||
// resource to be a local one.
|
||||
if (user?.image === 'https://placekitten.com/200/200') {
|
||||
user.image = '/cat.jpg'
|
||||
}
|
||||
|
||||
// Fallback logic for displaying user's "name":
|
||||
// 1. user.name
|
||||
// 2. user.first_name + ' ' + user.last_name
|
||||
|
Reference in New Issue
Block a user