Commit 79db02a
committed
test(e2e): broaden race-rejection body match for double-stop
The double-stop case asserts the response body explains the
race-protection rejection so a 'box stopped on accident, no
explanation' regression can still trip it. Tokyo's Api now returns
HTTP 400 with 'Box is not started' (one of several stable wordings
the API has picked for the same invariant: current state doesn't
admit this transition). Accept 'not started' / 'already stopped' /
'invalid state' alongside the existing 'state change' phrasing —
all four are semantically equivalent for the race-protection check
the test is gating.1 parent 13c8894 commit 79db02a
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
281 | 291 | | |
282 | 292 | | |
283 | 293 | | |
| |||
0 commit comments