diff --git a/internal/handlers/ussd/menuhandler_test.go b/internal/handlers/ussd/menuhandler_test.go index 34c8e76..2b168f2 100644 --- a/internal/handlers/ussd/menuhandler_test.go +++ b/internal/handlers/ussd/menuhandler_test.go @@ -1798,7 +1798,7 @@ func TestGetProfile(t *testing.T) { result: resource.Result{ Content: fmt.Sprintf( "Name: %s\nGender: %s\nAge: %s\nLocation: %s\nYou provide: %s\n", - "John Doee", "Male", "48", "Kilifi", "Bananas", + "John Doee", "Male", "49", "Kilifi", "Bananas", ), }, }, @@ -1810,7 +1810,7 @@ func TestGetProfile(t *testing.T) { result: resource.Result{ Content: fmt.Sprintf( "Jina: %s\nJinsia: %s\nUmri: %s\nEneo: %s\nUnauza: %s\n", - "John Doee", "Male", "48", "Kilifi", "Bananas", + "John Doee", "Male", "49", "Kilifi", "Bananas", ), }, }, @@ -1822,7 +1822,7 @@ func TestGetProfile(t *testing.T) { result: resource.Result{ Content: fmt.Sprintf( "Name: %s\nGender: %s\nAge: %s\nLocation: %s\nYou provide: %s\n", - "John Doee", "Male", "48", "Kilifi", "Bananas", + "John Doee", "Male", "49", "Kilifi", "Bananas", ), }, }, diff --git a/menutraversal_test/group_test.json b/menutraversal_test/group_test.json index 5ffe615..f35beb9 100644 --- a/menutraversal_test/group_test.json +++ b/menutraversal_test/group_test.json @@ -62,10 +62,10 @@ }, { "input": "1234", - "expectedContent": "Select language:\n0:English\n1:Kiswahili" + "expectedContent": "Select language:\n1:English\n2:Kiswahili" }, { - "input": "0", + "input": "1", "expectedContent": "Your language change request was successful.\n0:Back\n9:Quit" }, { @@ -430,7 +430,7 @@ }, { "input": "1234", - "expectedContent": "My profile:\nName: foo bar\nGender: male\nAge: 79\nLocation: Kilifi\nYou provide: Bananas\n\n0:Back" + "expectedContent": "My profile:\nName: foo bar\nGender: male\nAge: 80\nLocation: Kilifi\nYou provide: Bananas\n\n0:Back\n9:Quit" }, { "input": "0", diff --git a/menutraversal_test/test_setup.json b/menutraversal_test/test_setup.json index 5115de9..8728640 100644 --- a/menutraversal_test/test_setup.json +++ b/menutraversal_test/test_setup.json @@ -7,14 +7,14 @@ "steps": [ { "input": "", - "expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili" + "expectedContent": "Welcome to Sarafu Network\nPlease select a language\n1:English\n2:Kiswahili" }, { - "input": "0", - "expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n0:Yes\n1:No" + "input": "1", + "expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n1:Yes\n2:No" }, { - "input": "0", + "input": "1", "expectedContent": "Please enter a new four number PIN for your account:\n0:Exit" }, { @@ -40,14 +40,14 @@ "steps": [ { "input": "", - "expectedContent": "Welcome to Sarafu Network\nPlease select a language\n0:English\n1:Kiswahili" - }, - { - "input": "0", - "expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n0:Yes\n1:No" + "expectedContent": "Welcome to Sarafu Network\nPlease select a language\n1:English\n2:Kiswahili" }, { "input": "1", + "expectedContent": "Do you agree to terms and conditions?\nhttps://grassecon.org/pages/terms-and-conditions\n\n1:Yes\n2:No" + }, + { + "input": "2", "expectedContent": "Thank you for using Sarafu. Goodbye!" } ] diff --git a/services/registration/balances.vis b/services/registration/balances.vis index aef397f..9a346d5 100644 --- a/services/registration/balances.vis +++ b/services/registration/balances.vis @@ -7,3 +7,4 @@ HALT INCMP _ 0 INCMP my_balance 1 INCMP community_balance 2 +INCMP . * diff --git a/services/registration/change_language.vis b/services/registration/change_language.vis index 05ca95b..8b1def9 100644 --- a/services/registration/change_language.vis +++ b/services/registration/change_language.vis @@ -2,9 +2,9 @@ LOAD reset_account_authorized 0 LOAD reset_incorrect 0 CATCH incorrect_pin flag_incorrect_pin 1 CATCH pin_entry flag_account_authorized 0 -MOUT english 0 -MOUT kiswahili 1 +MOUT english 1 +MOUT kiswahili 2 HALT -INCMP set_default 0 -INCMP set_swa 1 +INCMP set_default 1 +INCMP set_swa 2 INCMP . * diff --git a/services/registration/community_balance.vis b/services/registration/community_balance.vis index f3e0ae1..fad90cc 100644 --- a/services/registration/community_balance.vis +++ b/services/registration/community_balance.vis @@ -9,3 +9,4 @@ MOUT quit 9 HALT INCMP _ 0 INCMP quit 9 +INCMP . * diff --git a/services/registration/edit_profile.vis b/services/registration/edit_profile.vis index e5ee12b..0f0adb7 100644 --- a/services/registration/edit_profile.vis +++ b/services/registration/edit_profile.vis @@ -20,3 +20,4 @@ INCMP edit_yob 4 INCMP edit_location 5 INCMP edit_offerings 6 INCMP view_profile 7 +INCMP . * diff --git a/services/registration/my_account.vis b/services/registration/my_account.vis index 2b6289e..e3956d2 100644 --- a/services/registration/my_account.vis +++ b/services/registration/my_account.vis @@ -14,3 +14,4 @@ INCMP balances 3 INCMP check_statement 4 INCMP pin_management 5 INCMP address 6 +INCMP . * diff --git a/services/registration/my_balance.vis b/services/registration/my_balance.vis index 9144da9..b6094c0 100644 --- a/services/registration/my_balance.vis +++ b/services/registration/my_balance.vis @@ -9,3 +9,4 @@ MOUT quit 9 HALT INCMP _ 0 INCMP quit 9 +INCMP . * diff --git a/services/registration/select_language.vis b/services/registration/select_language.vis index 54f08e9..0f7f298 100644 --- a/services/registration/select_language.vis +++ b/services/registration/select_language.vis @@ -1,6 +1,6 @@ -MOUT english 0 -MOUT kiswahili 1 +MOUT english 1 +MOUT kiswahili 2 HALT -INCMP set_eng 0 -INCMP set_swa 1 +INCMP set_eng 1 +INCMP set_swa 2 INCMP . * diff --git a/services/registration/terms.vis b/services/registration/terms.vis index f04bdf4..372b6ca 100644 --- a/services/registration/terms.vis +++ b/services/registration/terms.vis @@ -1,5 +1,5 @@ -MOUT yes 0 -MOUT no 1 +MOUT yes 1 +MOUT no 2 HALT -INCMP create_pin 0 +INCMP create_pin 1 INCMP quit * diff --git a/services/registration/view_profile.vis b/services/registration/view_profile.vis index a7ffee4..4f4947c 100644 --- a/services/registration/view_profile.vis +++ b/services/registration/view_profile.vis @@ -4,5 +4,8 @@ LOAD reset_incorrect 6 CATCH incorrect_pin flag_incorrect_pin 1 CATCH pin_entry flag_account_authorized 0 MOUT back 0 +MOUT quit 9 HALT INCMP _ 0 +INCMP quit 9 +INCMP . *