mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Use r0 media endpoints for group tests
This commit is contained in:
parent
1c8226682a
commit
90212c76a5
@ -187,7 +187,7 @@ describe('GroupView', function() {
|
||||
const avatarImgElement = ReactDOM.findDOMNode(img);
|
||||
expect(avatarImgElement).toBeTruthy();
|
||||
expect(avatarImgElement.src).toContain(
|
||||
'https://my.home.server/_matrix/media/v1/thumbnail/' +
|
||||
'https://my.home.server/_matrix/media/r0/thumbnail/' +
|
||||
'someavatarurl?width=28&height=28&method=crop',
|
||||
);
|
||||
|
||||
@ -265,7 +265,7 @@ describe('GroupView', function() {
|
||||
expect(longDescElement.innerHTML).toContain('<ul>');
|
||||
expect(longDescElement.innerHTML).toContain('<li>And lists!</li>');
|
||||
|
||||
const imgSrc = "https://my.home.server/_matrix/media/v1/thumbnail/someimageurl?width=800&height=600";
|
||||
const imgSrc = "https://my.home.server/_matrix/media/r0/thumbnail/someimageurl?width=800&height=600";
|
||||
expect(longDescElement.innerHTML).toContain('<img src="' + imgSrc + '">');
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user