Generate detailed test cases for a social media app's direct messaging feature. [/INST] [{"CHD_test_name":"Send Direct Message","CHD_test_desc":"Testing the ability to send a direct message to a friend.","CHD_test_steps":["1. Log in to the social media app.","2. Navigate to the messaging section.","3. Select a friend from the contact list.","4. Type a message and click send.","5. Verify that the message is sent and appears in the chat history."]],"CHD_test_expected":"Message should be sent and appear in the chat history."},{"CHD_test_name":"Receive Direct Message","CHD_test_desc":"Testing the ability to receive a direct message from a friend.","CHD_test_steps":["1. Log in to the social media app.","2. Ask a friend to send a direct message.","3. Verify that the message is received and a notification is displayed.","4. Open the message and ensure it displays correctly in the chat history."]],"CHD_test_expected":"Message should be received with a notification and displayed correctly in the chat history."},{"CHD_test_name":"Message Notifications","CHD_test_desc":"Testing the notification system for incoming messages.","CHD_test_steps":["1. Log in to the social media app.","2. Navigate away from the messaging section.","3. Ask a friend to send a direct message.","4. Verify that a notification is displayed in the app and on the device's notification system."]],"CHD_test_expected":"Notification should be displayed in-app and on the device when a message is received."},{"CHD_test_name":"Unread Message Badge","CHD_test_desc":"Testing the unread message badge in the app.","CHD_test_steps":["1. Log in to the social media app.","2. Navigate to the home screen.","3. Ask a friend to send a direct message.","4. Verify that an unread message badge appears on the messaging icon.","5. Open the message and ensure the badge is cleared."]],"CHD_test_expected":"Unread message badge should appear and be cleared once the message is opened."}] </s>
