diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/TESTING.md | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/docs/TESTING.md b/docs/TESTING.md index 32fc628..817cb3d 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md | |||
| @@ -46,7 +46,7 @@ or a vendored OpenSSL. | |||
| 46 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | | 46 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | |
| 47 | | `tests/storage.rs` | Client/server SQLite storage helpers. | | 47 | | `tests/storage.rs` | Client/server SQLite storage helpers. | |
| 48 | | `tests/tofu.rs` | SPKI fingerprint and TOFU decisions. | | 48 | | `tests/tofu.rs` | SPKI fingerprint and TOFU decisions. | |
| 49 | | `gui/tests/layout.rs` | GUI presentation maths: money grouping, wheel angle, table aspect, bet names. | | 49 | | `gui/tests/layout.rs` | GUI presentation maths: money grouping, wheel angle, table aspect, lattice snapping (straight/split/corner/outside), bet names. | |
| 50 | 50 | ||
| 51 | `tests/tofu.rs` and `tests/server_setup.rs` shell out to `openssl`, so run them | 51 | `tests/tofu.rs` and `tests/server_setup.rs` shell out to `openssl`, so run them |
| 52 | on a machine where the `openssl` CLI is available. | 52 | on a machine where the `openssl` CLI is available. |
| @@ -118,34 +118,36 @@ Use an 80-column terminal because several output lines are width-sensitive. | |||
| 118 | 118 | ||
| 119 | ## Manual GUI checklist | 119 | ## Manual GUI checklist |
| 120 | 120 | ||
| 121 | The GUI is a style spike until Phase 4: the table and wheel are painted from a | 121 | The desktop frontend shares `ClientCore` and the data directory with the |
| 122 | demo `RouletteView`, and no network connection is made. Run it on Linux and on | 122 | terminal client; a saved login from one signs in the other. |
| 123 | Windows 10 before approving the look. | 123 | |
| 124 | 124 | 1. `cargo run -p zagan-bet-gui` (or `-d <dir>` / `--unsafe`). The connect | |
| 125 | 1. `cargo run -p zagan-bet-gui` at 1440x900, then at 1920x1080. The header | 125 | screen lists remembered hosts with short fingerprints. |
| 126 | keeps its right margin at both sizes and shows ONLINE, host, ping, account | 126 | 2. First contact: the fingerprint modal appears before any credentials. Cancel |
| 127 | and balance; the table is centred and the sidebar is full height. | 127 | leaves the connect screen; Trust continues to the login screen. |
| 128 | 2. The felt shows 0, the 3x12 numbers, dozens, columns (each a quarter of the | 128 | 3. Register, then log in with "Remember this login". The lobby shows the host, |
| 129 | row) and the six outside cells. Chips sit on their targets: a straight in | 129 | ping, account, balance and the four games; quit and reconnect: the stored |
| 130 | the cell, a corner on the lattice crossing, an outside bet in its box. | 130 | login signs in without asking. |
| 131 | 3. Hover a number: a translucent chip of the selected denomination appears. | 131 | 4. Each game: place a bet or deal, play a round, and confirm the balance and the |
| 132 | In the inner half of a cell it is a straight (one cell tints); near an edge | 132 | header update. Slots shows reels and win lines; roulette spins the wheel and |
| 133 | it snaps to a split (two cells tint) and near a corner to a corner (four | 133 | reports the payout; blackjack draws suits and settles; crash draws a smooth |
| 134 | cells tint). Hovering the dozens, columns and outside boxes moves the | 134 | curve and cashes out. While the reels or wheel turn, the balance shows the |
| 135 | preview there. | 135 | stake already deducted; the payout appears only when they stop. A spin or |
| 136 | 4. Left click adds the chip where the preview is; right or middle click takes | 136 | deal the server refuses (for example an insufficient balance) shows the |
| 137 | one chip of that value back, dropping the row when it reaches zero. The | 137 | error and must not animate the reels, the wheel or the curve. |
| 138 | slip and total follow every change. C or CLEAR empties the slip. | 138 | 5. Sidebar actions never move while the slip grows. CLEAR empties the slip; |
| 139 | 5. Space or SPIN animates the wheel for about 2.4 s and stops with the winning | 139 | right or middle click on the felt takes one chip back; C clears and space |
| 140 | pocket under the pointer. The winning cell gets a gold outline and LAST | 140 | spins in roulette. |
| 141 | gains a dot. RESULT names the number and colour, WON shows the amount paid | 141 | 6. Leaving a live blackjack hand or crash round asks for confirmation, then |
| 142 | and the net for the round, and a losing spin says NO WIN. SPIN, CLEAR and | 142 | forfeits. Leaving an idle table returns to the lobby. |
| 143 | the chips are disabled during the spin. | 143 | 7. HISTORY shows the last plays; SHOW changes the limit. LOG OUT returns to |
| 144 | 6. Placing a chip after a result starts the next round: the payout row goes | 144 | the login screen but stays connected; Disconnect drops the session (the |
| 145 | back to PLACE YOUR BETS while the wheel stays where it stopped. Resize to | 145 | saved login survives). |
| 146 | 1100x720: the sidebar scrolls, nothing overlaps the header, and the table | 146 | 8. Run the client against a server of another MAJOR.MINOR version: the |
| 147 | keeps its aspect ratio. | 147 | mismatch screen names both versions and the download page. A changed host |
| 148 | 7. Compare the 1080p window against the approved reference screenshots. | 148 | key stops the connection and offers forget-and-reconnect. |
| 149 | 9. Resize to 1100x720: the sidebar scrolls, the actions stay reachable, and | ||
| 150 | the board keeps its aspect ratio. | ||
| 149 | 151 | ||
| 150 | ## Manual roulette checklist | 152 | ## Manual roulette checklist |
| 151 | 153 | ||
