From 1b8c8a12c081a1bc7c342e89c778982415af61cd Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 3 Oct 2024 12:51:03 +0300 Subject: [PATCH] combine the invalid PIN case --- test_engine/test_data.json | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/test_engine/test_data.json b/test_engine/test_data.json index 7e81354..21cf451 100644 --- a/test_engine/test_data.json +++ b/test_engine/test_data.json @@ -179,38 +179,25 @@ "input": "2", "expectedContent": "Please enter your PIN:" }, + { + "input": "1235", + "expectedContent": "Incorrect pin\n1:retry\n9:Quit" + }, + { + "input": "1", + "expectedContent": "Please enter your PIN:" + }, { "input": "1234", "expectedContent": "Select language:\n0:english\n1:kiswahili" }, { - "input": "1", - "expectedContent": "Ombi lako la kubadilisha lugha limefanikiwa.\n0:Rudi\n9:Ondoka" + "input": "0", + "expectedContent": "Your language change request was successful.\n0:Back\n9:Quit" }, { "input": "9", - "expectedContent": "Asante kwa kutumia huduma ya Sarafu. Kwaheri!" - } - ] - }, - { - "name": "menu_my_account_language_change_incorectpin", - "steps": [ - { - "input": "", - "expectedContent": "Balance: 0.003 CELO\n\n1:Send\n2:My Vouchers\n3:My Account\n4:Help\n9:Quit" - }, - { - "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": "2", - "expectedContent": "Please enter your PIN:" - }, - { - "input": "1235", - "expectedContent": "Incorrect pin\n1:retry\n9:Quit" + "expectedContent": "Thank you for using Sarafu. Goodbye!" } ] },