1346: Confirmation wrapper and styles

1346: Confirmation wrapper and styles

Test Case #:1346

Test Case Name: Confirmation wrapper and styles

System: OpenLMIS

Subsystem:

Test case designed by: Paulina Borowa

Design Date:28.11.2016

Short description

This ticket is about documenting and creating a wrapper about bootbox.confirm

The confirmation modal is used in a number of places to force a user to confirm a choice that could be destructive.

The confirm factory should work like:

// Regular confirm window Confirm('message.key'); // Confirm window with default confirm button text replaced Confirm('message.key', 'foo.bar'); // Confirm window for a destructive action, with a callback Confirm.destroy('message.key').then(function(){ // do something if confirmed }).catch(function(){ // do something else when rejected });

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

and login as an administrator or devadmin

                                                 

2

Go to requisition create/authorize view  -> chose some requisition and try to submit

complete all required fields and click ok button

 

3

On same requisition try to authorize

Click ok button

 

 

4

On same requisition try to approve

 

5

Try to delete a requisition

 

6

Check rest views for confirmation wrapper

 

 

OpenLMIS: the global initiative for powerful LMIS software