Files
crowd-funder-for-time-pwa/test-scripts
Matthew Raymer cd32c37cfb fix: standardize app package name to app.timesafari.app
Update package name consistently across all configurations to fix deep linking and app identification issues.

Changes:
- Update appId in package.json build config from "app.timesafari" to "app.timesafari.app"
- Update force-stop commands in test scripts to use correct package name
- Update URL scheme registration in iOS Info.plist to use consistent bundle ID
- Update app identifier fallback values in iOS test script
- Update serve script to use production mode with host flag

Technical Details:
- Standardized package name to "app.timesafari.app" across all configurations
- Fixed ADB commands in test scripts to use correct package identifier
- Updated iOS URL scheme registration to match Android package name
- Added proper NODE_ENV and host configuration for serve command

Benefits:
- Fixes deep linking functionality by using consistent package identifiers
- Ensures correct app identification across Android and iOS platforms
- Improves test reliability with correct package references
- Enables proper cross-platform URL scheme handling
2025-03-25 08:53:24 +00:00
..

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/generate_data.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