37 lines
896 B
Plaintext
37 lines
896 B
Plaintext
meta {
|
|
name: POST branch select deny level too low
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
docs {
|
|
NEO-48: salvage tier 1 requires skill level 2. Uses fixture player neo48-perk-fresh (seeded empty; not used by other requests).
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/game/players/{{neo48PerkFreshPlayerId}}/perk-state
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"schemaVersion": 1,
|
|
"skillId": "salvage",
|
|
"tierIndex": 1,
|
|
"branchId": "scrap_efficiency"
|
|
}
|
|
}
|
|
|
|
tests {
|
|
test("denies with level_too_low when salvage below gate", function () {
|
|
expect(res.getStatus()).to.equal(200);
|
|
const body = res.getBody();
|
|
expect(body.schemaVersion).to.equal(1);
|
|
expect(body.selected).to.equal(false);
|
|
expect(body.reasonCode).to.equal("level_too_low");
|
|
expect(body.unlockedEvents).to.be.an("array").that.is.empty;
|
|
expect(body.perkState.branchPicks).to.be.an("array").that.is.empty;
|
|
});
|
|
}
|