1229: Respect isDisplayed from the requisition template on the UI

1229: Respect isDisplayed from the requisition template on the UI

Test Case #:1230

 

Test Case Name: Respect isDisplayed from the requisition template on the UI

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:02.11.2016

Short description

  • When requisition template is configured to not display the column it is not show on the UI

  • When requisition template is configured to not display the column it does not fail the validation

  • When requisition template is configured to not display the column, no values is sent for that column from the UI during save

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

     Configure in template that the column 'productCode' should be displayed.  Change in .sql file the "isDisplayed" attribute

                                                                                

  {

    "requisitionTemplate": "5a268780-fafd-4243-9551-5c7daa824913",

    "key": "productCode",

    "name": "orderableProduct.productCode",

    "label": "Product Code",

    "indicator": "O",

    "displayOrder": 1,

    "isDisplayed": true,

    "source": 2,

    "requisitionColumnId": "bde01507-3837-47b7-ae08-cec92c0c3cd2"

  },

   The column "product Code" is displayed.  

                                                          

                                                 

2

   Configure in template that the column 'productCode' should be hidden. Change in .sql file the "isDisplayed" attribute.

 

  {

    "requisitionTemplate": "5a268780-fafd-4243-9551-5c7daa824913",

    "key": "productCode",

    "name": "orderableProduct.productCode",

    "label": "Product Code",

    "indicator": "O",

    "displayOrder": 1,

    "isDisplayed": false,

    "source": 2,

    "requisitionColumnId": "bde01507-3837-47b7-ae08-cec92c0c3cd2"

  },

 The column "product Code" is not displayed.

 

3

 

 

 

4

 

 

 

OpenLMIS: the global initiative for powerful LMIS software