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:
@@ -90,7 +90,7 @@ test('bundles: $20+ in the window shows the LinkSpin code; $100+ also says Downl
|
||||
const bn = r.notices.filter(x => x.subject === 'Network Weekend: your bundle extras');
|
||||
assert.strictEqual(bn.length, 2);
|
||||
assert.ok(bn.every(x => /WEEKEND500/.test(x.text) && /linkspin\.app/.test(x.text) && /Ad credits buy advertising, not income\./.test(x.text)));
|
||||
assert.ok(/DownlineHydra Pro/.test(bn[1].text) && /first 25 comps/.test(bn[1].text) && !/DownlineHydra/.test(bn[0].text));
|
||||
assert.ok(/DownlineHydra Pro/.test(bn[1].text) && /first 24 comps/.test(bn[1].text) && !/DownlineHydra/.test(bn[0].text));
|
||||
});
|
||||
|
||||
test('builders list for DownlineHydra: $100+ packs from Fri 00:00 CT to Tue 00:00 CT, lowercase wallets', async () => {
|
||||
@@ -101,7 +101,7 @@ test('builders list for DownlineHydra: $100+ packs from Fri 00:00 CT to Tue 00:0
|
||||
assert.deepStrictEqual(out.builders.map(b => b.usdCents), [10000, 25000]);
|
||||
assert.strictEqual(out.builders[0].wallet, '0xabcdef0000000000000000000000000000000002');
|
||||
assert.match(out.builders[1].wallet, /^0x[a]+3$/);
|
||||
assert.strictEqual(out.cap, 25);
|
||||
assert.strictEqual(out.cap, 24);
|
||||
});
|
||||
|
||||
test('Thanksgiving Thu 11-26 18:00 CT: the Friday notice and email carry the Black Friday copy, once; a normal Thursday stays normal', async () => {
|
||||
@@ -147,7 +147,9 @@ test('chatbot: fact and answer only around the window; the Friday question on Bl
|
||||
assert.strictEqual(pd.chatFact(T('2026-11-25T12:00:00Z')), '');
|
||||
assert.match(pd.chatFact(T('2026-11-26T12:00:00Z')), /starts Fri 2026-11-27 00:00 Central/);
|
||||
assert.match(pd.chatFact(T('2026-11-28T12:00:00Z')), /LIVE now/);
|
||||
assert.match(pd.chatFact(T('2026-12-02T12:00:00Z')), /is over/);
|
||||
assert.strictEqual(pd.chatFact(T('2026-12-02T12:00:00Z')), '', 'sovTiers off (live 11-17): no tier pass days to talk about after Mon');
|
||||
assert.ok(!/Game Pass bonus days/.test(pd.chatFact(T('2026-11-28T12:00:00Z'))), 'sovTiers off: the live fact leaves the tier days out');
|
||||
{ const r2 = rig([], { sovTiers: '1' }); assert.match(r2.pd.chatFact(T('2026-12-02T12:00:00Z')), /is over.*Game Pass bonus days/); assert.match(r2.pd.chatFact(T('2026-11-28T12:00:00Z')), /Game Pass bonus days/); }
|
||||
assert.strictEqual(pd.chatFact(T('2026-12-04T06:00:00Z')), '');
|
||||
assert.strictEqual(pd.chatAnswer('what is five dollar friday', T('2026-11-20T12:00:00Z')), null);
|
||||
assert.match(pd.chatAnswer('any black friday deal?', T('2026-11-27T15:00:00Z')), /Today is Black Friday: \+40% bonus ad credits on any \$5\+ pack/);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user