-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Matrix Content (mxc://) URIs in tests #798
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ahmad Kadri <ahmad.kadri@nordeck.net>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one test to go. Looks good otherwise 👍
/>, | ||
); | ||
|
||
await expect( | ||
screen.findByRole('presentation', { hidden: true }), | ||
).resolves.toHaveAttribute( | ||
'src', | ||
expect.stringMatching(/\/_matrix\/media\/r0\/thumbnail\/alice/i), | ||
expect.stringMatching(/\/_matrix\/media\/r0\/thumbnail\/.*\/imageAlice/i), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also contain the server name https://spec.matrix.org/v1.12/client-server-api/#get_matrixclientv1mediathumbnailservernamemediaid
Signed-off-by: Ahmad Kadri <ahmad.kadri@nordeck.net>
✔️ Checklist
Signed-off-by
line in the message (more info).