From d87135a80ae3ec7a8ac54fc9c9c199bd4f2ba3a2 Mon Sep 17 00:00:00 2001 From: Ksinia Date: Mon, 9 Nov 2020 01:26:53 +0100 Subject: [PATCH] Fix test for Replies link --- .../comment-form__subscribe-by-rss.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/comment-form/__subscribe-by-rss/comment-form__subscribe-by-rss.test.tsx b/frontend/app/components/comment-form/__subscribe-by-rss/comment-form__subscribe-by-rss.test.tsx index 1e639cc7..f1658e74 100644 --- a/frontend/app/components/comment-form/__subscribe-by-rss/comment-form__subscribe-by-rss.test.tsx +++ b/frontend/app/components/comment-form/__subscribe-by-rss/comment-form__subscribe-by-rss.test.tsx @@ -31,9 +31,9 @@ describe('', () => { expect(wrapper.find('.comment-form__rss-dropdown__link')).toHaveLength(3); }); - it('should have userId in site link', () => { - expect(wrapper.find('.comment-form__rss-dropdown__link').at(1).prop('href')).toEqual( - createSubscribeUrl('site', '&user=user-1') + it('should have userId in Replies link', () => { + expect(wrapper.find('.comment-form__rss-dropdown__link').at(2).prop('href')).toEqual( + createSubscribeUrl('reply', '&user=user-1') ); }); });