meta {
  name: POST hotbar loadout bind
  type: http
  seq: 3
}

post {
  url: {{baseUrl}}/game/players/dev-local-1/hotbar-loadout
  body: json
  auth: none
}

body:json {
  {
    "schemaVersion": 1,
    "slots": [
      {
        "slotIndex": 0,
        "abilityId": "prototype_pulse"
      },
      {
        "slotIndex": 3,
        "abilityId": "prototype_burst"
      }
    ]
  }
}

tests {
  test("status 200", function () {
    expect(res.getStatus()).to.equal(200);
  });

  test("updated true and payload shape", function () {
    const body = res.getBody();
    expect(body.schemaVersion).to.equal(1);
    expect(body.updated).to.equal(true);
    expect(body.loadout.slotCount).to.equal(8);
  });
}
