1059: Save a requisition

Test Case #:1059


Test Case Name: Save a requisition

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:31.10.2016

Short description

  • Create a 'save' method in RequisitionController
    This method is responsible for calling the API that will update the requisition object, displaying a loading icon while the HTTP call is running, and finally displaying a success or error message. Ideally the requisition controller wouldn't directly call the API — this should be done in a Factory (that directly deals with the Requisition Service's APIs), but the current implementation doesn't have this — and this ticket should focus on user-facing technology.
  • Add a semi-transparent toolbar with a 'save button' on it
    When clicked, this button will call the RequisitionController's save method. This save button is visible on the requisition view page.

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

                                                                                                                                                                                                                                                                                                                                                    

2

Verify, if on the requisition details window, button SAVE is visible.

 

 

3

After pressing the SAVE button, success message is displayed.

 

 

4

After disconnecting with blue service and pressing the SAVE button, error message is displayed.

 

 

5

   

6

  

 

7

  

 

8

                                                 

 

Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software