File tree Expand file tree Collapse file tree
onprc_ehr/test/src/org/labkey/test/tests/onprc_ehr Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments