mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 00:51:02 +00:00
chore: migrate git dependencies to Gitea mirror (git.pezkuwichain.io)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
appId: io.pezkuwichain.wallet
|
||||
name: "E2E: Onboarding Flow"
|
||||
---
|
||||
# Welcome Screen
|
||||
- assertVisible: "Pezkuwi"
|
||||
- assertVisible: "Create Wallet"
|
||||
|
||||
# Language Selection (if visible)
|
||||
- tapOn:
|
||||
text: "English"
|
||||
optional: true
|
||||
|
||||
# Navigate to Wallet Setup
|
||||
- tapOn: "Create Wallet"
|
||||
|
||||
# Wallet Setup Screen
|
||||
- assertVisible: "Create"
|
||||
- assertVisible: "Import"
|
||||
|
||||
# Create a new wallet
|
||||
- tapOn:
|
||||
text: "Create New Wallet"
|
||||
|
||||
# Mnemonic should be shown
|
||||
- assertVisible: "Recovery Phrase"
|
||||
|
||||
# Confirm mnemonic
|
||||
- tapOn: "I've saved it"
|
||||
|
||||
# Should reach wallet screen
|
||||
- assertVisible: "HEZ"
|
||||
- assertVisible: "PEZ"
|
||||
@@ -0,0 +1,35 @@
|
||||
appId: io.pezkuwichain.wallet
|
||||
name: "E2E: Send Transaction Flow"
|
||||
---
|
||||
# Wallet Screen
|
||||
- assertVisible: "HEZ"
|
||||
|
||||
# Tap Send button
|
||||
- tapOn:
|
||||
text: "Send"
|
||||
index: 0
|
||||
|
||||
# Send Screen
|
||||
- assertVisible: "Recipient Address"
|
||||
- assertVisible: "Amount"
|
||||
|
||||
# Enter recipient address
|
||||
- tapOn:
|
||||
id: "Recipient wallet address"
|
||||
- inputText: "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty"
|
||||
|
||||
# Enter amount
|
||||
- tapOn:
|
||||
id: "Amount of HEZ to send"
|
||||
- inputText: "0.001"
|
||||
|
||||
# Fee should appear
|
||||
- assertVisible:
|
||||
text: "Estimated Fee"
|
||||
optional: true
|
||||
|
||||
# Send button should be enabled
|
||||
- assertVisible: "Send HEZ"
|
||||
|
||||
# Go back (don't actually send in E2E test)
|
||||
- back
|
||||
@@ -0,0 +1,23 @@
|
||||
appId: io.pezkuwichain.wallet
|
||||
name: "E2E: Receive Screen"
|
||||
---
|
||||
# From wallet screen
|
||||
- assertVisible: "HEZ"
|
||||
|
||||
# Tap Receive
|
||||
- tapOn:
|
||||
text: "Receive"
|
||||
|
||||
# Receive Screen
|
||||
- assertVisible: "Receive"
|
||||
- assertVisible: "Share your address"
|
||||
- assertVisible: "Copy Address"
|
||||
- assertVisible: "Share"
|
||||
|
||||
# QR code should be visible
|
||||
- assertVisible:
|
||||
text: "5G"
|
||||
optional: true
|
||||
|
||||
# Go back
|
||||
- back
|
||||
@@ -0,0 +1,24 @@
|
||||
appId: io.pezkuwichain.wallet
|
||||
name: "E2E: DApp Browser"
|
||||
---
|
||||
# Navigate to Apps tab
|
||||
- tapOn: "Apps"
|
||||
|
||||
# Apps Screen
|
||||
- assertVisible: "DApp Browser"
|
||||
|
||||
# Open DApp Browser
|
||||
- tapOn: "DApp Browser"
|
||||
|
||||
# DApp Browser Screen
|
||||
- assertVisible: "DApp Browser"
|
||||
- assertVisible:
|
||||
text: "Search or enter URL"
|
||||
optional: true
|
||||
|
||||
# Bookmarked DApps should be visible
|
||||
- assertVisible: "Polkadot.js Apps"
|
||||
- assertVisible: "Pezkuwi Portal"
|
||||
|
||||
# Go back
|
||||
- back
|
||||
@@ -0,0 +1,28 @@
|
||||
appId: io.pezkuwichain.wallet
|
||||
name: "E2E: Settings & Network Switch"
|
||||
---
|
||||
# From wallet screen
|
||||
- assertVisible: "HEZ"
|
||||
|
||||
# Tap network selector
|
||||
- tapOn:
|
||||
text: "Pezkuwi Mainnet"
|
||||
optional: true
|
||||
|
||||
# Network selector modal should open
|
||||
- assertVisible:
|
||||
text: "Select Network"
|
||||
optional: true
|
||||
|
||||
# Networks should be listed
|
||||
- assertVisible:
|
||||
text: "Pezkuwi Mainnet"
|
||||
optional: true
|
||||
- assertVisible:
|
||||
text: "Dicle Testnet"
|
||||
optional: true
|
||||
|
||||
# Close without changing
|
||||
- tapOn:
|
||||
text: "Close"
|
||||
optional: true
|
||||
@@ -0,0 +1,34 @@
|
||||
# E2E Tests (Maestro)
|
||||
|
||||
## Setup
|
||||
```bash
|
||||
# Install Maestro CLI
|
||||
curl -Ls "https://get.maestro.mobile.dev" | bash
|
||||
|
||||
# Or via npm
|
||||
npm install -g maestro
|
||||
```
|
||||
|
||||
## Running Tests
|
||||
```bash
|
||||
# Single test
|
||||
maestro test .maestro/01-onboarding.yaml
|
||||
|
||||
# All tests
|
||||
maestro test .maestro/
|
||||
|
||||
# With connected device
|
||||
adb devices # ensure device is connected
|
||||
maestro test .maestro/
|
||||
```
|
||||
|
||||
## Test Flows
|
||||
1. **01-onboarding** — Welcome → Create Wallet → Mnemonic → Dashboard
|
||||
2. **02-send-flow** — Wallet → Send → Enter address/amount → Verify fee
|
||||
3. **03-receive-flow** — Wallet → Receive → QR code visible → Copy/Share
|
||||
4. **04-dapp-browser** — Apps → DApp Browser → Bookmarks visible
|
||||
5. **05-settings-network** — Wallet → Network selector → Networks listed
|
||||
|
||||
## Prerequisites
|
||||
- App must be installed on device/emulator
|
||||
- For tests requiring wallet: run 01-onboarding first
|
||||
Reference in New Issue
Block a user