You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Matthew Raymer b590e41ec8 feat: add claim route deep linking support 2 days ago
..
.prettierrc feat: Improve DID registration with admin credentials 1 week ago
README.md chore: updated package-lock and added a README for the test scripts. 3 days ago
check-did.sh for test script: add requirements, fix endpoint, and add setup instructions 1 week ago
did_generator.py feat: Add environment variable support for DID registration 1 week ago
did_generator.sh refactor: improve DID generation and error handling 1 week ago
did_generator.ts feat: Add environment variable support for DID registration 1 week ago
dids_seen.sh feat: enhance DID visibility management 1 week ago
generate-test-claim.sh fix: WIP: Update test scripts for DID verification and claim generation 1 week ago
mnemonic.txt feat: implement DID registration with JWT signing 1 week ago
new_flow.py feat: add JSON output files and improve test flow 4 days ago
new_flow.sh fix: improve secp256k1 signing in shell script 1 week ago
new_flow.ts feat: add JSON output files and improve test flow 4 days ago
package-lock.json feat: implement DID registration with JWT signing 1 week ago
package.json feat: implement DID registration with JWT signing 1 week ago
requirements.txt feat: implement DID registration with JWT signing 1 week ago
run-deeplink-tests.sh feat: add claim route deep linking support 2 days ago
secp256k1-sign fix: improve secp256k1 signing in shell script 1 week ago
test-deeplinks.sh feat: Improve test scripts for deep link testing 1 week ago
tsconfig.json fix: WIP: update did_generator.ts to use registration table 1 week ago
types.d.ts feat(test-scripts): add registration attempt to TypeScript DID generator 1 week ago

README.md

Test Scripts

This directory contains scripts for testing deep links and DID functionality.

The run-deeplink-tests.sh script tests the app's deep link handling capabilities.

Prerequisites

  1. Required tools:
    • bash
    • curl
    • jq
    • adb (optional - for device testing)
    • Either:
      • Python 3 with packages: mnemonic, eth_account, eth_keys, web3, requests
      • OR Node.js with TypeScript

Setup

  1. Generate required test files using either:

    Python method:

    pip install mnemonic eth_account eth_keys web3 requests
    python test-scripts/new_flow.py
    

    OR TypeScript method:

    npm install
    npm run build
    npm run start
    
  2. This will create the .generated directory with required files:

    • test-env.sh
    • claim_details.json
    • contacts.json

Running Tests

  1. Execute tests:

    ./test-scripts/run-deeplink-tests.sh
    
  2. Print mode (no device needed):

    ./test-scripts/run-deeplink-tests.sh -p
    
  3. Custom timeout:

    ./test-scripts/run-deeplink-tests.sh -t 10
    

Troubleshooting

If you encounter errors:

  1. Ensure .generated directory exists with required files
  2. Check ADB is installed for device testing
  3. Run with -p flag to verify deep link generation
  4. Verify test environment variables in .generated/test-env.sh

Clean Up

To clean up generated files:

rm -rf .generated