@@ -63,13 +63,13 @@ exports[`<Pill> should render the expected pill for @room 1`] = `
6363</DocumentFragment >
6464`;
6565
66- exports[`<Pill > should render the expected pill for a message in another room 1`] = `
66+ exports[`<Pill > should render the expected pill for a known user not in the room 1`] = `
6767<DocumentFragment >
6868 <div >
6969 <bdi >
7070 <a
71- class = " mx_Pill mx_EventPill "
72- href = " https://matrix.to/#/!room1 :example.com/$123-456 "
71+ class = " mx_Pill mx_UserPill "
72+ href = " https://matrix.to/#/@user2 :example.com"
7373 >
7474 <span
7575 aria-hidden = " true"
@@ -81,7 +81,7 @@ exports[`<Pill> should render the expected pill for a message in another room 1`
8181 class = " mx_BaseAvatar_initial"
8282 style = " font-size: 10.4px; width: 16px; line-height: 16px;"
8383 >
84- R
84+ U
8585 </span >
8686 <img
8787 alt = " "
@@ -95,15 +95,15 @@ exports[`<Pill> should render the expected pill for a message in another room 1`
9595 <span
9696 class = " mx_Pill_text"
9797 >
98- Message in Room 1
98+ User 2
9999 </span >
100100 </a >
101101 </bdi >
102102 </div >
103103</DocumentFragment >
104104`;
105105
106- exports[`<Pill > should render the expected pill for a message in the same room 1`] = `
106+ exports[`<Pill > should render the expected pill for a message in another room 1`] = `
107107<DocumentFragment >
108108 <div >
109109 <bdi >
@@ -121,7 +121,7 @@ exports[`<Pill> should render the expected pill for a message in the same room 1
121121 class = " mx_BaseAvatar_initial"
122122 style = " font-size: 10.4px; width: 16px; line-height: 16px;"
123123 >
124- U
124+ R
125125 </span >
126126 <img
127127 alt = " "
@@ -135,21 +135,21 @@ exports[`<Pill> should render the expected pill for a message in the same room 1
135135 <span
136136 class = " mx_Pill_text"
137137 >
138- Message from User 1
138+ Message in Room 1
139139 </span >
140140 </a >
141141 </bdi >
142142 </div >
143143</DocumentFragment >
144144`;
145145
146- exports[`<Pill > should render the expected pill for a room alias 1`] = `
146+ exports[`<Pill > should render the expected pill for a message in the same room 1`] = `
147147<DocumentFragment >
148148 <div >
149149 <bdi >
150150 <a
151- class = " mx_Pill mx_RoomPill "
152- href = " https://matrix.to/#/# room1:example.com"
151+ class = " mx_Pill mx_EventPill "
152+ href = " https://matrix.to/#/! room1:example.com/$123-456 "
153153 >
154154 <span
155155 aria-hidden = " true"
@@ -161,7 +161,7 @@ exports[`<Pill> should render the expected pill for a room alias 1`] = `
161161 class = " mx_BaseAvatar_initial"
162162 style = " font-size: 10.4px; width: 16px; line-height: 16px;"
163163 >
164- R
164+ U
165165 </span >
166166 <img
167167 alt = " "
@@ -175,21 +175,21 @@ exports[`<Pill> should render the expected pill for a room alias 1`] = `
175175 <span
176176 class = " mx_Pill_text"
177177 >
178- Room 1
178+ Message from User 1
179179 </span >
180180 </a >
181181 </bdi >
182182 </div >
183183</DocumentFragment >
184184`;
185185
186- exports[`<Pill > should render the expected pill for a space 1`] = `
186+ exports[`<Pill > should render the expected pill for a room alias 1`] = `
187187<DocumentFragment >
188188 <div >
189189 <bdi >
190190 <a
191191 class = " mx_Pill mx_RoomPill"
192- href = " https://matrix.to/#/!space1 :example.com"
192+ href = " https://matrix.to/#/#room1 :example.com"
193193 >
194194 <span
195195 aria-hidden = " true"
@@ -201,7 +201,7 @@ exports[`<Pill> should render the expected pill for a space 1`] = `
201201 class = " mx_BaseAvatar_initial"
202202 style = " font-size: 10.4px; width: 16px; line-height: 16px;"
203203 >
204- S
204+ R
205205 </span >
206206 <img
207207 alt = " "
@@ -215,21 +215,21 @@ exports[`<Pill> should render the expected pill for a space 1`] = `
215215 <span
216216 class = " mx_Pill_text"
217217 >
218- Space 1
218+ Room 1
219219 </span >
220220 </a >
221221 </bdi >
222222 </div >
223223</DocumentFragment >
224224`;
225225
226- exports[`<Pill > should render the expected pill for a user not in the room 1`] = `
226+ exports[`<Pill > should render the expected pill for a space 1`] = `
227227<DocumentFragment >
228228 <div >
229229 <bdi >
230230 <a
231- class = " mx_Pill mx_UserPill "
232- href = " https://matrix.to/#/@user2 :example.com"
231+ class = " mx_Pill mx_RoomPill "
232+ href = " https://matrix.to/#/!space1 :example.com"
233233 >
234234 <span
235235 aria-hidden = " true"
@@ -241,7 +241,7 @@ exports[`<Pill> should render the expected pill for a user not in the room 1`] =
241241 class = " mx_BaseAvatar_initial"
242242 style = " font-size: 10.4px; width: 16px; line-height: 16px;"
243243 >
244- U
244+ S
245245 </span >
246246 <img
247247 alt = " "
@@ -255,7 +255,29 @@ exports[`<Pill> should render the expected pill for a user not in the room 1`] =
255255 <span
256256 class = " mx_Pill_text"
257257 >
258- User 2
258+ Space 1
259+ </span >
260+ </a >
261+ </bdi >
262+ </div >
263+ </DocumentFragment >
264+ `;
265+
266+ exports[`<Pill > should render the expected pill for an uknown user not in the room 1`] = `
267+ <DocumentFragment >
268+ <div >
269+ <bdi >
270+ <a
271+ class = " mx_Pill mx_UserPill"
272+ href = " https://matrix.to/#/@user3:example.com"
273+ >
274+ <div
275+ class = " mx_Pill_UserIcon mx_BaseAvatar mx_BaseAvatar_image"
276+ />
277+ <span
278+ class = " mx_Pill_text"
279+ >
280+ @user3:example.com
259281 </span >
260282 </a >
261283 </bdi >
0 commit comments