Skip to content

Commit 01f1e80

Browse files
authored
Update search behavior for restricted issues. (#1672)
1 parent eb90751 commit 01f1e80

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

onprc_ehr/test/src/org/labkey/test/tests/onprc_ehr/ONPRC_RestrictedIssueTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,16 @@ public void restrictedIssueSearchTest()
293293
// verify that we can return links even if the user doesn't have permission to view a restricted issue
294294
Assert.assertTrue("Number of search results not expected", resultsPage.getResults().size() == 2);
295295

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

302304
impersonate(USER2.getEmail());
305+
assertTextPresent("Restricted Issue: You do not have access. Contact your administrator for access.");
303306
verifyIssueAccess(ISSUE_1, false);
304307
verifyIssueAccess(ISSUE_2, true);
305308
stopImpersonating();

0 commit comments

Comments
 (0)