ussd/menutraversal_test/test_setup.json

133 lines
5.2 KiB
JSON
Raw Permalink Normal View History

2024-10-17 11:34:17 +02:00
[
{
"name": "session one",
"groups": [
{
"name": "account_creation_successful",
"steps": [
{
"input": "",
2024-11-29 13:39:27 +01:00
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili"
2024-10-17 11:34:17 +02:00
},
{
"input": "0",
2024-11-29 13:39:27 +01:00
"expectedContent": "Do you agree to terms and conditions?\n0:Yes\n1:No"
2024-10-17 11:34:17 +02:00
},
{
"input": "0",
"expectedContent": "Please enter a new four number PIN for your account:\n0:Exit"
},
{
"input": "1234",
"expectedContent": "Enter your four number PIN again:"
},
{
"input": "1111",
2024-11-05 08:49:08 +01:00
"expectedContent": "The PIN is not a match. Try again\n1:Retry\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "1",
"expectedContent": "Enter your four number PIN again:"
},
{
"input": "1234",
"expectedContent": "Your account is being created...Thank you for using Sarafu. Goodbye!"
}
]
},
{
"name": "account_creation_reject_terms",
"steps": [
{
"input": "",
2024-11-29 13:39:27 +01:00
"expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili"
2024-10-17 11:34:17 +02:00
},
{
"input": "0",
2024-11-29 13:39:27 +01:00
"expectedContent": "Do you agree to terms and conditions?\n0:Yes\n1:No"
2024-10-17 11:34:17 +02:00
},
{
"input": "1",
"expectedContent": "Thank you for using Sarafu. Goodbye!"
}
]
},
{
2024-11-15 11:24:54 +01:00
"name": "send_with_invite",
2024-10-17 11:34:17 +02:00
"steps": [
{
"input": "",
2024-10-21 15:52:07 +02:00
"expectedContent": "{balance}\n\n1:Send\n2:My Vouchers\n3:My Account\n4:Help\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "1",
"expectedContent": "Enter recipient's phone number/address/alias:\n0:Back"
2024-10-17 11:34:17 +02:00
},
{
"input": "000",
2024-11-15 11:24:54 +01:00
"expectedContent": "000 is invalid, please try again:\n1:Retry\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "1",
"expectedContent": "Enter recipient's phone number/address/alias:\n0:Back"
2024-10-17 11:34:17 +02:00
},
{
2024-11-15 11:24:54 +01:00
"input": "0712345678",
"expectedContent": "0712345678 is not registered, please try again:\n1:Retry\n2:Invite to Sarafu Network\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
2024-11-15 11:24:54 +01:00
"input": "2",
"expectedContent": "Your invite request for 0712345678 to Sarafu Network failed. Please try again later."
2024-10-17 11:34:17 +02:00
}
]
},
{
"name": "main_menu_help",
"steps": [
{
"input": "",
2024-10-21 15:52:07 +02:00
"expectedContent": "{balance}\n\n1:Send\n2:My Vouchers\n3:My Account\n4:Help\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "4",
"expectedContent": "For more help,please call: 0757628885"
}
]
},
{
"name": "main_menu_quit",
"steps": [
{
"input": "",
2024-10-21 15:52:07 +02:00
"expectedContent": "{balance}\n\n1:Send\n2:My Vouchers\n3:My Account\n4:Help\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "9",
"expectedContent": "Thank you for using Sarafu. Goodbye!"
}
]
},
{
"name": "menu_my_account_my_address",
"steps": [
{
"input": "",
2024-10-21 15:52:07 +02:00
"expectedContent": "{balance}\n\n1:Send\n2:My Vouchers\n3:My Account\n4:Help\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "3",
"expectedContent": "My Account\n1:Profile\n2:Change language\n3:Check balances\n4:Check statement\n5:PIN options\n6:My Address\n0:Back"
},
{
"input": "6",
2024-11-05 08:49:08 +01:00
"expectedContent": "Address: {public_key}\n0:Back\n9:Quit"
2024-10-17 11:34:17 +02:00
},
{
"input": "9",
"expectedContent": "Thank you for using Sarafu. Goodbye!"
}
]
}
]
}
]