Refactors accounts tests to match changes to menu.

This commit is contained in:
PhilipWafula 2021-05-31 15:21:10 +03:00
parent 23015f8b98
commit b2ab1465d7
Signed by untrusted user: mango-habanero
GPG Key ID: B00CE9034DA19FB7
2 changed files with 22 additions and 22 deletions

View File

@ -82,12 +82,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '53'
Content-Length: '61'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -104,12 +104,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '53'
Content-Length: '61'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -126,12 +126,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '54'
Content-Length: '64'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -148,12 +148,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '59'
Content-Length: '71'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -170,12 +170,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '32'
Content-Length: '44'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -258,12 +258,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '27'
Content-Length: '29'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -302,12 +302,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '42'
Content-Length: '51'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -324,12 +324,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '53'
Content-Length: '64'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:
@ -346,12 +346,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '26'
Content-Length: '31'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
extra_kwargs:
expected_response: "CON Enter location\n0. Back"
expected_response: "CON Enter your location\n0. Back"
- name: Select gender [Female - second account]
request:
@ -412,12 +412,12 @@ stages:
status_code:
- 200
headers:
Content-Length: '52'
Content-Length: '42'
Content-Type: "text/plain"
verify_response_with:
function: ext.validator:validate_response
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]
request:

View File

@ -19,7 +19,7 @@ marks:
- second
stages:
- name: Start menu [first account]
- name: Transactions start menu [first account]
request:
url: "{server_url}"
data:
@ -41,7 +41,7 @@ stages:
extra_kwargs:
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:
url: "{server_url}"
data: