NEO-133: fix Bruno quest smokes for five-quest roster

Update quest-definitions and quest-progress default Bruno tests
after prototype_quest_grid_contract landed in the catalog.
pull/172/head
VinPropane 2026-06-15 19:58:37 -04:00
parent 6cb7dfbb46
commit 635f3cccaf
2 changed files with 19 additions and 3 deletions

View File

@ -17,7 +17,7 @@ tests {
const body = res.getBody(); const body = res.getBody();
expect(body.schemaVersion).to.equal(1); expect(body.schemaVersion).to.equal(1);
expect(body.quests).to.be.an("array"); expect(body.quests).to.be.an("array");
expect(body.quests.length).to.equal(4); expect(body.quests.length).to.equal(5);
}); });
test("quests are ascending by id (ordinal)", function () { test("quests are ascending by id (ordinal)", function () {
@ -54,4 +54,19 @@ tests {
quantity: 1, quantity: 1,
}); });
}); });
test("prototype_quest_grid_contract has operator-chain prereq and kit hand-in objective", function () {
const body = res.getBody();
const row = body.quests.find((x) => x.id === "prototype_quest_grid_contract");
expect(row).to.be.an("object");
expect(row.displayName).to.equal("Grid Contract");
expect(row.prerequisiteQuestIds).to.eql(["prototype_quest_operator_chain"]);
expect(row.steps).to.have.length(1);
expect(row.steps[0].objectives[0]).to.eql({
id: "grid_contract_obj_kit",
kind: "inventory_has_item",
itemId: "survey_drone_kit",
quantity: 1,
});
});
} }

View File

@ -5,7 +5,7 @@ meta {
} }
docs { docs {
NEO-119: fresh dev-local-1 row before any quest accept — all four catalog quests not_started. NEO-119: fresh dev-local-1 row before any quest accept — all five catalog quests not_started.
} }
get { get {
@ -21,7 +21,7 @@ tests {
expect(body.schemaVersion).to.equal(1); expect(body.schemaVersion).to.equal(1);
expect(body.playerId).to.equal(bru.getEnvVar("playerId") || bru.getVar("playerId")); expect(body.playerId).to.equal(bru.getEnvVar("playerId") || bru.getVar("playerId"));
expect(body.quests).to.be.an("array"); expect(body.quests).to.be.an("array");
expect(body.quests.length).to.equal(4); expect(body.quests.length).to.equal(5);
}); });
test("all prototype quests are not_started with empty counters", function () { test("all prototype quests are not_started with empty counters", function () {
@ -29,6 +29,7 @@ tests {
const expectedIds = [ const expectedIds = [
"prototype_quest_combat_intro", "prototype_quest_combat_intro",
"prototype_quest_gather_intro", "prototype_quest_gather_intro",
"prototype_quest_grid_contract",
"prototype_quest_operator_chain", "prototype_quest_operator_chain",
"prototype_quest_refine_intro", "prototype_quest_refine_intro",
]; ];