NEO-79: Fix Bruno cast unknown-ability test setup.
Bind slot 0 in pre-request so the cast route reaches unknown_ability instead of slot_unbound when run before other ability-cast requests.pull/112/head
parent
0e5bbbff2e
commit
603cc525ad
|
|
@ -6,6 +6,21 @@ meta {
|
|||
|
||||
docs {
|
||||
NEO-79: unknown ability ids deny with reasonCode unknown_ability (catalog-backed IAbilityDefinitionRegistry).
|
||||
Pre-request binds slot 0 so cast validation reaches ability allowlist (not slot_unbound).
|
||||
}
|
||||
|
||||
script:pre-request {
|
||||
const axios = require("axios");
|
||||
const baseUrl = bru.getEnvVar("baseUrl") || bru.getVar("baseUrl");
|
||||
const playerId = bru.getEnvVar("playerId") || bru.getVar("playerId") || "dev-local-1";
|
||||
await axios.post(
|
||||
`${baseUrl}/game/players/${playerId}/hotbar-loadout`,
|
||||
{
|
||||
schemaVersion: 1,
|
||||
slots: [{ slotIndex: 0, abilityId: "prototype_pulse" }],
|
||||
},
|
||||
{ headers: { "Content-Type": "application/json" } },
|
||||
);
|
||||
}
|
||||
|
||||
post {
|
||||
|
|
|
|||
Loading…
Reference in New Issue