Refactors accounts tests to match changes to menu.
This commit is contained in:
parent
23015f8b98
commit
b2ab1465d7
@ -82,12 +82,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '53'
|
Content-Length: '61'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Welcome to Sarafu\n1. English\n2. Kiswahili\n3. Help"
|
expected_response: "CON Welcome to Sarafu Network\n1. English\n2. Kiswahili\n3. Help"
|
||||||
|
|
||||||
- name: Initaite account metadata entry [second account]
|
- name: Initaite account metadata entry [second account]
|
||||||
request:
|
request:
|
||||||
@ -104,12 +104,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '53'
|
Content-Length: '61'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Welcome to Sarafu\n1. English\n2. Kiswahili\n3. Help"
|
expected_response: "CON Welcome to Sarafu Network\n1. English\n2. Kiswahili\n3. Help"
|
||||||
|
|
||||||
- name: Select preferred language [English]
|
- name: Select preferred language [English]
|
||||||
request:
|
request:
|
||||||
@ -126,12 +126,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '54'
|
Content-Length: '64'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Please enter a PIN to manage your account.\n0. Back"
|
expected_response: "CON Please enter a new four number PIN for your account.\n0. Back"
|
||||||
|
|
||||||
- name: Select preferred language [Kiswahili]
|
- name: Select preferred language [Kiswahili]
|
||||||
request:
|
request:
|
||||||
@ -148,12 +148,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '59'
|
Content-Length: '71'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Tafadhali weka PIN ili kudhibiti akaunti yako.\n0. Nyuma"
|
expected_response: "CON Tafadhali weka pin mpya yenye nambari nne kwa akaunti yako\n0. Nyuma"
|
||||||
|
|
||||||
- name: Enter pin number [{first_account_pin_number} - first account]
|
- name: Enter pin number [{first_account_pin_number} - first account]
|
||||||
request:
|
request:
|
||||||
@ -170,12 +170,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '32'
|
Content-Length: '44'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Enter your PIN again\n0. Back"
|
expected_response: "CON Enter your four number PIN again\n0. Back"
|
||||||
|
|
||||||
- name: Enter pin number [second_account_pin_number - second account]
|
- name: Enter pin number [second_account_pin_number - second account]
|
||||||
request:
|
request:
|
||||||
@ -258,12 +258,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '27'
|
Content-Length: '29'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Enter last name\n0. Back"
|
expected_response: "CON Enter family name\n0. Back"
|
||||||
|
|
||||||
- name: Enter first name [second_account_given_name - second account]
|
- name: Enter first name [second_account_given_name - second account]
|
||||||
request:
|
request:
|
||||||
@ -302,12 +302,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '42'
|
Content-Length: '51'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Enter gender\n1. Male\n2. Female\n0. Back"
|
expected_response: "CON Enter gender\n1. Male\n2. Female\n3. Other\n0. Back"
|
||||||
|
|
||||||
- name: Enter last name [second_account_family_name - second account]
|
- name: Enter last name [second_account_family_name - second account]
|
||||||
request:
|
request:
|
||||||
@ -324,12 +324,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '53'
|
Content-Length: '64'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Weka jinsia yako\n1. Mwanaume\n2. Mwanamke\n0. Nyuma"
|
expected_response: "CON Weka jinsia yako\n1. Mwanaume\n2. Mwanamke\n3. Nyngine\n0. Nyuma"
|
||||||
|
|
||||||
- name: Select gender [Male - first account]
|
- name: Select gender [Male - first account]
|
||||||
request:
|
request:
|
||||||
@ -346,12 +346,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '26'
|
Content-Length: '31'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Enter location\n0. Back"
|
expected_response: "CON Enter your location\n0. Back"
|
||||||
|
|
||||||
- name: Select gender [Female - second account]
|
- name: Select gender [Female - second account]
|
||||||
request:
|
request:
|
||||||
@ -412,12 +412,12 @@ stages:
|
|||||||
status_code:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
headers:
|
headers:
|
||||||
Content-Length: '52'
|
Content-Length: '42'
|
||||||
Content-Type: "text/plain"
|
Content-Type: "text/plain"
|
||||||
verify_response_with:
|
verify_response_with:
|
||||||
function: ext.validator:validate_response
|
function: ext.validator:validate_response
|
||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Tafadhali weka bidhaa ama huduma unauza\n0. Nyuma"
|
expected_response: "CON Weka bidhaa ama huduma unauza\n0. Nyuma"
|
||||||
|
|
||||||
- name: Enter product [first_account_product - first account]
|
- name: Enter product [first_account_product - first account]
|
||||||
request:
|
request:
|
||||||
|
@ -19,7 +19,7 @@ marks:
|
|||||||
- second
|
- second
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: Start menu [first account]
|
- name: Transactions start menu [first account]
|
||||||
request:
|
request:
|
||||||
url: "{server_url}"
|
url: "{server_url}"
|
||||||
data:
|
data:
|
||||||
@ -41,7 +41,7 @@ stages:
|
|||||||
extra_kwargs:
|
extra_kwargs:
|
||||||
expected_response: "CON Balance {gift_value} {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
expected_response: "CON Balance {gift_value} {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||||
|
|
||||||
- name: Start menu [second account]
|
- name: Transactions start menu [second account]
|
||||||
request:
|
request:
|
||||||
url: "{server_url}"
|
url: "{server_url}"
|
||||||
data:
|
data:
|
||||||
|
Loading…
Reference in New Issue
Block a user