play: a new language is created with everything Play needs to commit it (icon, feature graphic, phone and tablet screenshots); play images creates a missing listing
This commit is contained in:
parent
2ec1f0ab13
commit
ed8d138a8e
7 changed files with 172 additions and 32 deletions
|
|
@ -287,7 +287,7 @@ describe('play images: tablet, TV and Wear sets are optional (play.tablets)', ()
|
|||
expect(resolvedTablets({ play: {} }, join(phoneOnly().root, 'store/renders'))).toBe(false);
|
||||
});
|
||||
|
||||
test('languages without a Play listing are skipped: a draft section before any call, a 404 listing as info; exit 0', async () => {
|
||||
test('a draft section is skipped before any call, a language with a 404 listing is created by the run (dry: named); exit 0', async () => {
|
||||
playKey();
|
||||
const root = mkdtempSync(join(tmpdir(), 'sb-langs-'));
|
||||
const sec = (name: string, code: string, marker = '') => `## ${name}\n<!-- play: ${code} -->\n${marker}\n### Play short description\n\`\`\`\nShort.\n\`\`\`\n\n### Play full description\n\`\`\`\nFull.\n\`\`\`\n\n`;
|
||||
|
|
@ -309,9 +309,9 @@ describe('play images: tablet, TV and Wear sets are optional (play.tablets)', ()
|
|||
const out = await capture(() => imagesRun({ loaded, args: parseArgs(['--dry']) }));
|
||||
expect(process.exitCode).toBe(before);
|
||||
expect(out).toContain('skipped fr-FR: no Play listing yet (machine-translated draft, not reviewed');
|
||||
expect(out).toContain('skipped de-DE: no Play listing yet (run storebound play listing first');
|
||||
expect(out).toContain('de-DE: no Play listing yet, this run creates it from the listing file with its images');
|
||||
expect(out).toContain('de-DE: would replace icon (0 -> 1)');
|
||||
expect(out).toContain('en-US: would replace icon (0 -> 1)');
|
||||
expect(out).not.toMatch(/de-DE: would/);
|
||||
expect(calls.some(c => c.url.includes('fr-FR'))).toBe(false);
|
||||
expect(calls.every(readOnly)).toBe(true);
|
||||
expect(noListing(new Error("GET /edits/1/listings/de-DE/icon -> 404 Listing for language 'de-DE' not found."))).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue