From f61054a3d508b469a88888be899ab7bec44974b1 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 11 Dec 2022 12:46:59 -0800 Subject: [PATCH] test: add test for #2263 (#2317) --- tests/spec/116-follow-requests.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/spec/116-follow-requests.js b/tests/spec/116-follow-requests.js index 43acb60f..21eb02e9 100644 --- a/tests/spec/116-follow-requests.js +++ b/tests/spec/116-follow-requests.js @@ -2,8 +2,16 @@ import { loginAsLockedAccount } from '../roles' import { followAs, unfollowAs } from '../serverActions' import { avatarInComposeBox, - communityNavButton, followersButton, getNthSearchResult, getSearchResultByHref, getUrl, goBack, - homeNavButton, sleep + communityNavButton, + followersButton, + getNthSearchResult, + getNthStatus, + getSearchResultByHref, + getUrl, + goBack, + homeNavButton, + notificationsNavButton, + sleep } from '../utils' import { users } from '../users' import { Selector as $ } from 'testcafe' @@ -93,6 +101,9 @@ test('Shows unresolved follow requests', async t => { await t .expect(communityNavButton.getAttribute('aria-label')).eql('Community (2 follow requests)') + .click(notificationsNavButton) + .expect(getUrl()).contains('/notifications') + .expect(getNthStatus(1).innerText).contains('requested to follow you') .click(communityNavButton) .expect(requestsButton.innerText).contains('Follow requests (2)') .click(requestsButton)