Fixed tests
In the previous commits I have removed the native title/tooltip so it needs to be removed from the tests as well Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
a975de22ef
commit
a075568e89
|
@ -208,7 +208,7 @@ describe("<TextualBody />", () => {
|
||||||
const content = wrapper.find(".mx_EventTile_body");
|
const content = wrapper.find(".mx_EventTile_body");
|
||||||
expect(content.html()).toBe('<span class="mx_EventTile_body markdown-body" dir="auto">' +
|
expect(content.html()).toBe('<span class="mx_EventTile_body markdown-body" dir="auto">' +
|
||||||
'Hey <span>' +
|
'Hey <span>' +
|
||||||
'<a class="mx_Pill mx_UserPill" title="@user:server">' +
|
'<a class="mx_Pill mx_UserPill">' +
|
||||||
'<img class="mx_BaseAvatar mx_BaseAvatar_image" src="mxc://avatar.url/image.png" ' +
|
'<img class="mx_BaseAvatar mx_BaseAvatar_image" src="mxc://avatar.url/image.png" ' +
|
||||||
'style="width: 16px; height: 16px;" title="@member:domain.bla" alt="" aria-hidden="true">Member</a>' +
|
'style="width: 16px; height: 16px;" title="@member:domain.bla" alt="" aria-hidden="true">Member</a>' +
|
||||||
'</span></span>');
|
'</span></span>');
|
||||||
|
@ -267,8 +267,8 @@ describe("<TextualBody />", () => {
|
||||||
expect(content.html()).toBe(
|
expect(content.html()).toBe(
|
||||||
'<span class="mx_EventTile_body markdown-body" dir="auto">' +
|
'<span class="mx_EventTile_body markdown-body" dir="auto">' +
|
||||||
'A <span><a class="mx_Pill mx_RoomPill" href="#/room/!ZxbRYPQXDXKGmDnJNg:example.com' +
|
'A <span><a class="mx_Pill mx_RoomPill" href="#/room/!ZxbRYPQXDXKGmDnJNg:example.com' +
|
||||||
'?via=example.com&via=bob.com" ' +
|
'?via=example.com&via=bob.com"' +
|
||||||
'title="!ZxbRYPQXDXKGmDnJNg:example.com"><img class="mx_BaseAvatar mx_BaseAvatar_image" ' +
|
'><img class="mx_BaseAvatar mx_BaseAvatar_image" ' +
|
||||||
'src="mxc://avatar.url/room.png" ' +
|
'src="mxc://avatar.url/room.png" ' +
|
||||||
'style="width: 16px; height: 16px;" alt="" aria-hidden="true">' +
|
'style="width: 16px; height: 16px;" alt="" aria-hidden="true">' +
|
||||||
'!ZxbRYPQXDXKGmDnJNg:example.com</a></span> with vias</span>',
|
'!ZxbRYPQXDXKGmDnJNg:example.com</a></span> with vias</span>',
|
||||||
|
|
Loading…
Reference in New Issue