From c1a85f9b5d5582df6bd70299e66de1fd48e4b384 Mon Sep 17 00:00:00 2001 From: Snipzil Date: Wed, 21 Oct 2026 22:25:40 -0400 Subject: [PATCH] test(smoke): a login choice cannot make a player a guide Since a860a67 only the admin makes guides, so login_choices' isGuide is refused; the smoke test still expected it to stick. Co-Authored-By: Claude Opus 5.5 --- test/smoke.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/smoke.js b/test/smoke.js index 54acf5c..5dbd1c5 100644 --- a/test/smoke.js +++ b/test/smoke.js @@ -658,7 +658,8 @@ const run = async () => { login_choices: {accountType: 0, isGuide: true, membershipDays: 12, isModerator: "yes"}})).json(); assert.strictEqual((await (await fetch(`${BASE}/player`, {headers: {Authorization: `Bearer ${chosen.auth_token}`}})).json()).game_account_type, 0); a.xt("ag", denId, "Erin", 0); - assert.deepStrictEqual((await a.untilXt("ag")).slice(5, 7), ["0", "1"]); // account type, guide + // account type, guide: asking to be a guide is refused unless the admin made them one + assert.deepStrictEqual((await a.untilXt("ag")).slice(5, 7), ["0", "0"]); await postJson(`${BASE}/authenticate`, {username: "Erin", password: "KettlePass05"}); // and back to normal a.xt("ag", denId, "Erin", 0); assert.deepStrictEqual((await a.untilXt("ag")).slice(5, 7), ["2", "0"]);