Network Weekend: Builder Bundle cap 24 (DH keeperGrantsLeft 49, 5 PRO_PENDING, 20 reserve); tier Game Pass bonus days only said while sovTiers is on (it is 0 live) (Marty 2026-11-17)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:27:05 -06:00
parent d471a5664d
commit c65e57dadc
3 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ let fn;
assert.strictEqual((await fetch(base + '/api/network/weekend-builders')).status, 401);
assert.strictEqual((await fetch(base + '/api/network/weekend-builders', { headers: { 'X-Weekend-Key': 'x'.repeat(48) } })).status, 401);
const b = await fetch(base + '/api/network/weekend-builders', { headers: { 'X-Weekend-Key': KEY } }); assert.strictEqual(b.status, 200);
const bj = await b.json(); assert.ok(Array.isArray(bj.builders) && bj.cap === 25 && bj.start === '2026-11-27T06:00:00.000Z'); ok('builders feed: key required, shape right');
const bj = await b.json(); assert.ok(Array.isArray(bj.builders) && bj.cap === 24 && bj.start === '2026-11-27T06:00:00.000Z'); ok('builders feed: key required, shape right');
let { pg, ctx, errs } = await page(base, nowIso, '/weekend');
const state = await pg.textContent('#nwState'); assert.match(state, /It is Black Friday\. \+40% bonus ad credits on any \$5\+/); ok('/weekend live state');
assert.strictEqual(await pg.locator('.nw-day').count(), 4); assert.ok(await pg.locator('.nw-day.today').count() === 1);
@@ -85,7 +85,7 @@ let fn;
};
await run('2026-11-30T20:00:00Z', 8814);
fn = async (base, nowIso) => {
const v = await (await fetch(base + '/api/promodays')).json(); assert.ok(!v.live && v.today === null && v.passBonusLive === true); ok('Tue 12-01: weekend off, pass days still on');
const v = await (await fetch(base + '/api/promodays')).json(); assert.ok(!v.live && v.today === null && v.passBonusLive === false); ok('Tue 12-01: weekend off; no pass days shown while sovTiers is off');
const { pg, ctx } = await page(base, nowIso, '/'); assert.strictEqual(await pg.locator('.nw-ribbon').count(), 0); assert.strictEqual(await pg.locator('#nwStrip:not([hidden])').count(), 0); ok('Tue: no ribbon, no strip'); await ctx.close();
};
await run('2026-12-01T15:00:00Z', 8815);