76 lines
3.5 KiB
Markdown
76 lines
3.5 KiB
Markdown
# Testing, debugging, and release verification
|
|
|
|
## Layered test strategy
|
|
|
|
Use three distinct layers and state which layer a result came from.
|
|
|
|
### 1. Ordinary browser preview
|
|
|
|
Test responsive layout, RTL, theme fallbacks, navigation, form behavior, accessibility, and honest unsupported states without the native bridge. Blocking/authenticated operations must remain unavailable unless explicitly using a development-only test seam.
|
|
|
|
### 2. Deterministic bridge contract tests
|
|
|
|
Inject a small `window.Eitaa.WebApp` test double before application code loads. Record method calls and trigger callbacks/events to verify:
|
|
|
|
- `ready()` timing and optional `expand()` behavior;
|
|
- native button configuration and stable subscribe/unsubscribe callbacks;
|
|
- theme, safe-area, and viewport updates;
|
|
- permission denial as well as approval;
|
|
- fullscreen spelling compatibility and version guards;
|
|
- QR payloads render as inert text;
|
|
- sensors start, update, stop, and clean up;
|
|
- sensitive event payloads are redacted;
|
|
- raw `initData` reaches the authentication endpoint; and
|
|
- message requests contain text but no client-selected recipient.
|
|
|
|
Do not call this native Eitaa testing; it checks the application's bridge contract.
|
|
|
|
### 3. Backend security tests
|
|
|
|
Use fake tokens and signed fixtures. Cover:
|
|
|
|
- a valid signature and documented HMAC reference vector;
|
|
- changed data and wrong token;
|
|
- duplicate/encoded duplicate keys and malformed encoding;
|
|
- missing, invalid, expired, and too-far-in-the-future `auth_date`;
|
|
- malformed/oversized payloads and malformed user JSON;
|
|
- Persian text plus encoded `+`, `&`, and `=` characters;
|
|
- large Eitaa IDs without truncation;
|
|
- constant-time signature comparison through the language's standard primitive;
|
|
- session regeneration/expiry, CSRF, user binding, contact/user match, and rate limits;
|
|
- mocked upstream success, rejection, timeout, invalid JSON, large response, and redirect behavior.
|
|
|
|
Tests must never load a real token or contact Eitaa unless the user explicitly authorizes an integration test.
|
|
|
|
## Native WebView debugging
|
|
|
|
Android procedure from the supplied documentation:
|
|
|
|
1. Enable USB debugging on the device.
|
|
2. In Eitaa settings, press and hold the version row, release, then press and hold it again to open the debug menu.
|
|
3. Enable WebView debugging.
|
|
4. Connect the device and open `chrome://inspect#devices` in a Chromium-based desktop browser.
|
|
5. Open the app in Eitaa and inspect its WebView.
|
|
|
|
Windows desktop procedure:
|
|
|
|
1. Open Eitaa Settings, then Advanced, then Experimental Settings.
|
|
2. Enable WebView inspecting.
|
|
3. Open the app, right-click, and inspect.
|
|
|
|
Menus can change between client versions. If these steps no longer match, verify the current Eitaa client instructions.
|
|
|
|
## Native acceptance pass
|
|
|
|
On every supported target actually used by the product, verify:
|
|
|
|
- launch from the real registered Eitaa entry point and correct `platform`/SDK version;
|
|
- server-authenticated identity and expired/replayed launch behavior;
|
|
- light/dark themes, safe areas, keyboard, rotation, expansion, closing, and navigation;
|
|
- each used native control, popup, link, QR/download flow, permission denial/approval, and sensor lifecycle;
|
|
- fullscreen/home-screen behavior only when supported;
|
|
- one intentional message to the authenticated tester, including denied permission and insufficient-credit errors where practical; and
|
|
- no token, raw signed launch/contact data, phone number, or private identity in browser/server logs.
|
|
|
|
Record unsupported methods as capability results, not application crashes. A browser or test-double pass does not prove native-client support.
|