Skip to content

Conversation

@vrrayz
Copy link

@vrrayz vrrayz commented Jun 12, 2025

fix for #352

Copy link
Contributor

@Lezek123 Lezek123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the PR, I left a small comment regarding notification tests, as there have been some changes related to those in Orion 5.0.
It seems like your branch fails to build after you updated it from master: https://github.com/Joystream/orion/actions/runs/15605914961/job/44001244476?pr=366, so please fix the code in notifications.test.ts.

}
case 'CommentPostedToVideo': {
const { videoId, videoTitle, memberId, memberHandle } = notificationType
const { videoId, videoTitle, memberId, memberHandle, comentId } = notificationType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { videoId, videoTitle, memberId, memberHandle, comentId } = notificationType
const { videoId, videoTitle, memberId, memberHandle, commentId } = notificationType

return {
icon: await getNotificationIcon(em, 'follow'),
link: await getNotificationLink(em, 'nft-page', [videoId]),
link: await getNotificationLink(em, 'video-page', [videoId, comentId]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
link: await getNotificationLink(em, 'video-page', [videoId, comentId]),
link: await getNotificationLink(em, 'video-page', [videoId, commentId]),

},
}
before(async () => {
nextNotificationIdPre = await getNextNotificationId(overlay, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will no longer work in Orion v5, as the notification ids are randomly generated, please see the adjustments to notifications tests that I made here: https://github.com/Joystream/orion/pull/365/files#diff-4ecb12693f9548f4c9bf50d647cf34ac9bd0f648f61151c72cda0c2d2fbc139a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants