mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 18:16:43 +00:00
Drop catalog snapshot assertion from the TUI upgrade/GPU wording test
The translation workflow fills new keys in the shipped catalogs after merge, so the fixture no longer asserts that lang/it.json lacks them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
91e62b16e0
commit
53b415b127
@@ -69,7 +69,7 @@ for (const line of helpEn) {
|
||||
assert.ok(line.includes('repeat the check (Run PVE 8 to 9 check) to review any remaining issues'), line);
|
||||
assert.ok(!line.includes('{check}') && !line.includes('all issues are resolved') && !line.includes('run Run'), line);
|
||||
}
|
||||
const helpIt = renderHelp('it'); // New keys absent from shipped Italian cache: complete English fallback.
|
||||
const helpIt = renderHelp('it');
|
||||
for (const line of helpIt) assert.ok(line.includes(it['Run PVE 8 to 9 check']), line);
|
||||
for (const locale of locales) {
|
||||
const catalog = JSON.parse(read(`lang/${locale}.json`));
|
||||
@@ -129,7 +129,5 @@ required=${JSON.stringify(['Run PVE 8 to 9 check', ...newKeys, 'Hardware: GPUs a
|
||||
assert set(required)<=keys, set(required)-keys
|
||||
print('EXTRACTED',len(required))`], {cwd: root, encoding: 'utf8'});
|
||||
assert.equal(extraction.status, 0, extraction.stderr);
|
||||
// No source catalog edits; synthetic translation and malformed placeholders only live in scratch.
|
||||
assert.ok(!Object.keys(it).some(k => newKeys.includes(k)));
|
||||
fs.rmSync(temp, {recursive: true, force: true});
|
||||
console.log('PASS: extracted upgrade/GPU consumers, seven caches/fallbacks, synthetic and malformed placeholders, real extractor');
|
||||
|
||||
Reference in New Issue
Block a user