Group Chat Test Cases
Sr No. | Case Description | Data / Action | Expected Output |
---|---|---|---|
1 | getData Callback passed is passed but it is not returning any data | getDataCallback is not returning data | Previous messages will not be there. A textbox to send new message. |
2 | getData Callback passed is passed but it is returning proper data | item={ activeUser:'', messages:[{ user: '', message: '', ,dateTime:'' ,messageId:'' }]} | Component will be shown with previous messages and latest message will be shown at end. |
3 | No options are passed | options are not passed | Component will be displayed with a default background image which will be repeating |
4 | Send button is clicked without typing message | Click on send button | Nothing will happen |
5 | Send button is clicked after typing message | Type the message and Click on send button | Message will got saved if service returns success |
6 | Send button is clicked after typing message | Type the message and Click on send button | A retry button will appear if service fails |
7 | Click on retry button | Click on retry button | Message saving is again triggered |
8 | Hover on the chat window | Hover the chat window | Scroll bar will be shown on hover |