Commit 6a5d30e
committed
test(e2e): apply adversarial-QA review findings across the suite
Second pass on the same fake-passing class of bug, this time catching
weaknesses the previous tighten-up missed:
- install.test.ts: `dot update` now asserts on the actual outcome line
("already on latest" / "Updated dot to") instead of just exitCode 0.
A silent no-op update was previously indistinguishable from a real
one.
- build.test.ts: each test stages its fixture into a tempdir and runs
the build there, instead of mutating the source-controlled fixture's
dist/. This removes a hidden cross-file order dependency where build
tests would delete the dist that later deploy --no-build tests
needed. Error-path assertions tightened to the exact strings the
fixture/runner emit ("Compile error: unexpected token", "No build
strategy detected") rather than /error|fail|detect/.
- session.test.ts: tightened "no signer" / "logout" assertions to the
exact "No signer available" / "No account is signed in" strings.
- init.test.ts: the no-session and corrupted-session tests now fail
loudly when init falls into the "Login skipped" branch (login
service unreachable from the runner) instead of silently accepting
it as a pass — which was masking the QR path's testability gap.
Corrupted-session test additionally asserts the corrupt file is
unchanged on disk, catching a hypothetical regression where init
"fixes" parse failures by deleting user data.
- diagnostic.test.ts: both verbose-mode tests now assert on a
verbose-only marker that proves the env var actually engaged its
code path (`[+<seconds>s]` for DOT_DEPLOY_VERBOSE,
`[mem +<seconds>s]` for DOT_MEMORY_TRACE). Previously the tests
could pass with the env var silently ignored.
- deploy.test.ts:
- "frontend-only deploy completes end-to-end" now queries the
registry independently after deploy and verifies the on-chain
metadata CID matches what the CLI claimed it published.
- "re-deploy same domain" now mutates the build output between the
two deploys and asserts the second deploy produced a *different*
metadata CID. A silently-no-op re-deploy would otherwise still
print "Deploy complete" and pass.
- "domain availability check runs before build/upload" now verifies
the temporal ordering claimed in its name — availability banner
must precede any build-runner header or storage-phase marker.
- Multi-contract test renamed; it cannot prove plurality from
headless output (logHeadlessEvent doesn't surface contract names),
so the old name was misleading.
- e2e/cli/setup/global.ts: SIGNER funding failure now throws by default
with a clear message, instead of swallowing into a console.warn that
let downstream deploy tests fail with cryptic "Invalid Payment"
errors. Set E2E_ALLOW_OFFLINE_SETUP=1 to opt back into the lenient
behaviour for local dev on a flaky network.1 parent 14ec717 commit 6a5d30e
7 files changed
Lines changed: 295 additions & 93 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | | - | |
19 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
20 | 30 | | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | | - | |
25 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
26 | 53 | | |
27 | 54 | | |
28 | 55 | | |
29 | 56 | | |
30 | 57 | | |
31 | | - | |
32 | | - | |
| 58 | + | |
| 59 | + | |
33 | 60 | | |
34 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
35 | 65 | | |
36 | | - | |
| 66 | + | |
37 | 67 | | |
38 | 68 | | |
39 | 69 | | |
40 | | - | |
41 | | - | |
| 70 | + | |
| 71 | + | |
42 | 72 | | |
43 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
44 | 76 | | |
45 | | - | |
| 77 | + | |
46 | 78 | | |
47 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
23 | 34 | | |
| |||
128 | 139 | | |
129 | 140 | | |
130 | 141 | | |
131 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
132 | 150 | | |
133 | 151 | | |
134 | 152 | | |
| |||
183 | 201 | | |
184 | 202 | | |
185 | 203 | | |
186 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
187 | 230 | | |
188 | 231 | | |
189 | 232 | | |
| |||
207 | 250 | | |
208 | 251 | | |
209 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
210 | 266 | | |
211 | 267 | | |
212 | 268 | | |
| |||
222 | 278 | | |
223 | 279 | | |
224 | 280 | | |
| 281 | + | |
| 282 | + | |
225 | 283 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
241 | 328 | | |
242 | 329 | | |
243 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
21 | 61 | | |
22 | 62 | | |
23 | 63 | | |
| |||
28 | 68 | | |
29 | 69 | | |
30 | 70 | | |
31 | | - | |
| 71 | + | |
32 | 72 | | |
33 | 73 | | |
34 | 74 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
39 | 80 | | |
40 | 81 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 82 | + | |
| 83 | + | |
56 | 84 | | |
57 | 85 | | |
0 commit comments