Create a new permission "Settings (Circ): Can view patron notice templates"

Description

Purpose:
Add a new permission (called: Settings (Circ): Can view patron notice templates) to view only the setting “Patron notice templates”.
This come in addition to the existing permission: Settings (Circ): Can create, edit and remove patron notice templates.

User story statement(s):
As an librarian staff admin of FOLIO,
I want to have a separate permission to view only the patron notice templates,
so that staff can view the templates, but not edit or delete them.

Scenarios:

PART 1: In the User app.

1_ Scenario: When searching for the new permission:

  • Given the navigation through: Users >> Edit user >> (In the accordion “User permissions”) >> Add permission,

  • When I select the filter Permission type = Permissions,

  • Then I can find the new permission “Settings (Circ): Can view patron notice templates”, and it highlights blue when I hover my mouse over it.

2_ Scenario: When selecting the permission:

  • Given that I’ve found the new permission “Settings (Circ): Can view patron notice templates” in the Add permission modal,

  • When I click on the permission line,

  • Then the little box is selected, the blue highlighting remains on the selected permission, and the “Total selected: x” increases by 1 accordingly.

3_ Scenario: When saving the selection of the new permission:

  • Given that I’ve selected the new permission in the Add permission modal

  • When I click on “Save & close”,

  • Then I return to the User Edit modal, and I see the name of the new permission listed under the accordion “User permissions”, including the X to remove the permission, if so wished.

4_ Scenario: When removing the permission from the user:

  • Given that I have added the new permission to my user,

  • When I click on the X button,

  • Then the permission is no longer listed in the accordion “User permissions”.

 

PART 2: In the Settings app

5_ Scenario: When the user with this permission logs in:

  • Given the user has the permission: “Settings (Circ): Can view patron notice templates ",

  • When the user logs into FOLIO,

  • Then they can access the following thing: Settings >> Circulation >> Patron notice templates.

6_ Scenario: When the user views the list of patron notice templates:

  • Given the user has the permission: “Settings (Circ): Can view patron notice templates ",

  • When the user sees the list of patron notice templates,

  • Then the +New button is not visible to them.

7_ Scenario: When the user selects a patron notice template: 

  • Given that the user is viewing the list of patron notice templates,

  • When the user clicks on a patron notice template,

  • Then the fourth pane, containing the patron notice template, appears.

8_ Scenario: When the user selects a patron notice template: 

  • Given the user has selected a patron notice template,

  • When the user clicks on the button “Actions”

  • Then the drop-down list renders empty.

9_ Scenario: Previewing the patron notice template:

  • Given the user has selected a patron notice template,

  • When the user clicks on Preview,

  • Then the preview of the patron notice template appears.

10_ Scenario: Closing the preview of the patron notice template:

  • Given the user is viewing the preview,

  • When the user clicks on Close,

  • Then the preview of the patron noticed template closes.

11_ Scenario: Closing the patron notice template:

  • Give the user has selected a patron notice template,

  • When the user clicks on X,

  • Then the fourth pane closes.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

julie.bickleOctober 4, 2022 at 11:36 AM

Hello ,
I have looked at what the permission "Settings (Circ): Can view loan policies" does:

  1. The "+ New" button should not be visible.

  2. The actions list should render empty.

I will update the description accordingly.

Artem BlazhkoSeptember 29, 2022 at 1:58 PM
Edited

Hello .
Could you clarify a few questions:

  1. What is the behavior of "+ New" button described in the 6_ Scenario?
    Should we disable the button or should we make it not visible?

  2. What is the behavior of "Actions menu" described in the 8_ Scenario?
    Should we render empty actions list? Or should we make "Actions" button disabled (not clickable) or not visible?

Details

Assignee

Reporter

Priority

Story Points

Development Team

Volaris

Release

Not Scheduled

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 23, 2022 at 2:36 PM
Updated April 4, 2024 at 5:24 AM
TestRail: Cases
TestRail: Runs

Flag notifications