Commit ea23d2b
fix(e2e): harden specs with self-contained state, assertions, and diagnostics
- clickFirstMatch: poll with retry loop instead of single-pass probe
- walkOnboarding: poll 6 times before concluding overlay not mounted;
fix button text to match current LocalAIStep ("Use Local Models");
redact accessibility tree dumps on MnemonicStep (recovery phrase)
- navigateToBilling: verify billing markers after fallback, throw with
diagnostics (hash + tree dump) on failure
- performFullLogin: accept optional postLoginVerifier callback for
callers that need to assert auth side-effects
- auth-access-control: extract local nav helpers to shared-flows imports;
seed mock state per-test (3.3.1, 3.3.3) instead of relying on prior
specs; assert "Manage" button presence; assert waitForTextToDisappear
result; tighten logout postcondition with token-cleared check;
confirmation click searches role="button" + aria-label
- card-payment-flow: seed mock state per-test (5.2.1, 5.3.1, 5.3.2);
assert "Manage" presence instead of silent skip
- crypto-payment-flow: enable crypto toggle before Upgrade, verify
Coinbase charge endpoint; seed state per-test (6.2.1, 6.3.1)
- login-flow: track hadOnboardingWalkthrough boolean for Phase 3
onboarding-complete assertion; expired/invalid token tests now assert
home not reached, welcome UI visible, and token not persisted;
bypass auth test clears state first and asserts all outcomes
- conversations: platform-gated skip (Linux only, not all platforms)
- skills-registry: assert hash + UI marker after navigateToSkills
- notion-flow: remove duplicate local waitForHomePage; add hash
assertion after navigateToIntelligence
- e2e-run-all-flows: set OPENHUMAN_SERVICE_MOCK=1 for service spec
- docker-entrypoint: verify Xvfb liveness with retry, add cleanup trap
- mock-api-core: catch-all returns 404 instead of fake 200
- clickToggle: use clickAtElement instead of raw el.click on tauri-driver
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c3a70e9 commit ea23d2b
12 files changed
Lines changed: 353 additions & 344 deletions
File tree
- app
- scripts
- test/e2e
- helpers
- specs
- e2e
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
| |||
163 | 178 | | |
164 | 179 | | |
165 | 180 | | |
166 | | - | |
| 181 | + | |
167 | 182 | | |
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
171 | 186 | | |
172 | 187 | | |
| 188 | + | |
| 189 | + | |
173 | 190 | | |
174 | | - | |
| 191 | + | |
| 192 | + | |
175 | 193 | | |
176 | 194 | | |
177 | 195 | | |
| |||
187 | 205 | | |
188 | 206 | | |
189 | 207 | | |
190 | | - | |
| 208 | + | |
191 | 209 | | |
192 | | - | |
| 210 | + | |
193 | 211 | | |
194 | 212 | | |
195 | 213 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
263 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
264 | 288 | | |
265 | 289 | | |
266 | 290 | | |
| |||
275 | 299 | | |
276 | 300 | | |
277 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
278 | 307 | | |
279 | 308 | | |
0 commit comments