Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,16 @@ public void restrictedIssueSearchTest()
// verify that we can return links even if the user doesn't have permission to view a restricted issue
Assert.assertTrue("Number of search results not expected", resultsPage.getResults().size() == 2);

// verify assigned to users will see both results but shouldn't be able to see details of issues not assigned to them
// verify assigned to users will see both results but shouldn't be able to see details of issues not assigned to them,
// also verify that there is a warning rendered if a search result is restricted
impersonate(USER1.getEmail());
assertTextPresent("Restricted Issue: You do not have access. Contact your administrator for access.");
verifyIssueAccess(ISSUE_1, true);
verifyIssueAccess(ISSUE_2, false);
stopImpersonating(false);

impersonate(USER2.getEmail());
assertTextPresent("Restricted Issue: You do not have access. Contact your administrator for access.");
verifyIssueAccess(ISSUE_1, false);
verifyIssueAccess(ISSUE_2, true);
stopImpersonating();
Expand Down
Loading