From 23e72fb816fdebac2f4cc3c1d56a29056add261f Mon Sep 17 00:00:00 2001 From: Sheldon Regular Date: Fri, 13 Oct 2023 15:13:36 -0400 Subject: [PATCH] BCW Special and Extended characters tests Signed-off-by: Sheldon Regular --- .../features/bc_wallet/proof.feature | 21 +++++++++ .../cred_data_drivers_license_sp_char.json | 46 +++++++++++++++++++ .../data/proof_drivers_license_sp_char.json | 29 ++++++++++++ ...ema_drivers_license_\360\237\230\200.json" | 16 +++++++ aries-mobile-tests/sl_ios_config.json | 5 +- 5 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 aries-mobile-tests/features/data/cred_data_drivers_license_sp_char.json create mode 100644 aries-mobile-tests/features/data/proof_drivers_license_sp_char.json create mode 100644 "aries-mobile-tests/features/data/schema_drivers_license_\360\237\230\200.json" diff --git a/aries-mobile-tests/features/bc_wallet/proof.feature b/aries-mobile-tests/features/bc_wallet/proof.feature index 38bff4ee..2996feaf 100644 --- a/aries-mobile-tests/features/bc_wallet/proof.feature +++ b/aries-mobile-tests/features/bc_wallet/proof.feature @@ -74,6 +74,27 @@ Feature: Proof | cred_data_photo_id | proof_photo_id | + @T002.2-Proof @normal @FunctionalTest @Story_29 + Scenario Outline: Holder accepts the proof request credential has special characters + Given the User has skipped on-boarding + And the User has accepted the Terms and Conditions + And a PIN has been set up with "369369" + And the Holder has selected to use biometrics to unlock BC Wallet + And the holder has credentials + | credential | revocable | issuer_agent_type | credential_name | + | cred_data_drivers_license_sp_char | True | AATHIssuer | Drivers License 😀 | + And the user has a proof request for + When they select Share + And the holder is informed that they are sending information securely + And they are informed that the information sent successfully + And they select Go back to home on information sent successfully + Then they are brought Home + + Examples: + | proof | + | proof_drivers_license_sp_char | + + @T003-Proof @critical @AcceptanceTest @Revocation Scenario Outline: Holder accepts the proof request of a revoked credential where the verifier cares if the credential was revoked Given the User has skipped on-boarding diff --git a/aries-mobile-tests/features/data/cred_data_drivers_license_sp_char.json b/aries-mobile-tests/features/data/cred_data_drivers_license_sp_char.json new file mode 100644 index 00000000..7afaa0ac --- /dev/null +++ b/aries-mobile-tests/features/data/cred_data_drivers_license_sp_char.json @@ -0,0 +1,46 @@ +{ + "schema_name": "drivers_license_😀", + "schema_version": "1.0.0", + "attributes": [ + { + "name": "name_😀", + "value": "Betty Naroff 😀" + }, + { + "name": "civic_address_!@#", + "value": "159 Cedar Street, Sudbury, ON" + }, + { + "name": "city_$%^", + "value": "Sudbury" + }, + { + "name": "province_&*(", + "value": "ON" + }, + { + "name": ")_+_country", + "value": "Canada" + }, + { + "name": "~!@_postal_code", + "value": "P3E 1B1" + }, + { + "name": "#$%_birth_dateint", + "value": "19420117" + }, + { + "name": "^&*_id", + "value": "123456789" + }, + { + "name": "issue_()_date", + "value": "2022-04-04T13:32:55.455Z" + }, + { + "name": "expiry_/0_date", + "value": "2027-04-04T13:32:55.455Z" + } + ] +} \ No newline at end of file diff --git a/aries-mobile-tests/features/data/proof_drivers_license_sp_char.json b/aries-mobile-tests/features/data/proof_drivers_license_sp_char.json new file mode 100644 index 00000000..d52ea908 --- /dev/null +++ b/aries-mobile-tests/features/data/proof_drivers_license_sp_char.json @@ -0,0 +1,29 @@ +{ + "requested_attributes": { + "id_attrs": { + "names": [ + "name_😀" + ], + "restrictions": [ + { + "schema_name": "drivers_license_😀", + "schema_version": "1.0.0" + } + ] + } + }, + "requested_predicates": { + "age": { + "name": "#$%_birth_dateint", + "p_type": ">", + "p_value": 19420116, + "restrictions": [ + { + "schema_name": "drivers_license_😀", + "schema_version": "1.0.0" + } + ] + } + }, + "version": "0.1.0" +} \ No newline at end of file diff --git "a/aries-mobile-tests/features/data/schema_drivers_license_\360\237\230\200.json" "b/aries-mobile-tests/features/data/schema_drivers_license_\360\237\230\200.json" new file mode 100644 index 00000000..97f1f10c --- /dev/null +++ "b/aries-mobile-tests/features/data/schema_drivers_license_\360\237\230\200.json" @@ -0,0 +1,16 @@ +{ + "schema_name":"drivers_license_😀", + "schema_version":"1.0.0", + "attributes":[ + "name_😀", + "civic_address_!@#", + "city_$%^", + "province_&*(", + ")_+_country", + "~!@_postal_code", + "#$%_birth_dateint", + "^&*_id", + "issue_()_date", + "expiry_/0_date" + ] +} \ No newline at end of file diff --git a/aries-mobile-tests/sl_ios_config.json b/aries-mobile-tests/sl_ios_config.json index 4262ff09..af206c5a 100644 --- a/aries-mobile-tests/sl_ios_config.json +++ b/aries-mobile-tests/sl_ios_config.json @@ -4,10 +4,11 @@ { "platformName": "iOS", "appium:options": { - "app": "storage:filename=BCWallet-1083.ipa", + "app": "storage:filename=BCWallet-1215.ipa", "autoAcceptAlerts": true, "autoDismissAlerts": true, - "automationName": "xcuitest" + "automationName": "xcuitest", + "platformVersion": "16.7|13.7|14.8|15.7.5" }, "sauce:options": { "appiumVersion": "2.0.0",