This commit is contained in:
@@ -183,6 +183,13 @@ test('expiry boundaries and Shanghai rendering preserve server values, including
|
||||
assert.equal(formatShanghaiExpiry('2026-10-13T12:30:00'), '2026-10-13 12:30:00');
|
||||
});
|
||||
|
||||
test('homepage expiry popup never displays backend level labels', () => {
|
||||
const source = readFileSync(resolve(root, 'components/ExpiryReminderPopup.vue'), 'utf8');
|
||||
assert.doesNotMatch(source, /level_name|reminder-level/);
|
||||
assert.match(source, /reminder\.remaining_days/);
|
||||
assert.match(source, /formatShanghaiExpiry\(reminder\.expires_at\)/);
|
||||
});
|
||||
|
||||
test('shared asset-info receiver keeps a child-first reminder and rejects stale sessions/phones', async () => {
|
||||
const r = runtime();
|
||||
const { assetApi } = await r.load('api/modules/asset.js');
|
||||
|
||||
Reference in New Issue
Block a user