apple creative-assets: a placement App Store Connect refuses on the live version is reported with the live version page's deep link, the live page stays unchanged (new placement first, old one removed after) and the other live slots are not retried; pitfall 76
This commit is contained in:
parent
98d3bf4410
commit
1736300784
4 changed files with 42 additions and 5 deletions
|
|
@ -194,6 +194,20 @@ describe('apple creative-assets against the fake App Store Connect', () => {
|
|||
expect((await go(p, ['--verify'])).out).toContain('every slot shows the local file');
|
||||
});
|
||||
|
||||
test('live version refuses a placement: clear message with the console deep link, live page unchanged, no blind retry', async () => {
|
||||
const p = setup(files());
|
||||
s.asc.all('appStoreVersions')[0]!.attributes.appVersionState = 'READY_FOR_DISTRIBUTION';
|
||||
await go(p);
|
||||
for (const x of lib()) x.attributes.state = 'APPROVED';
|
||||
s.faults.push({ method: 'POST', match: /appAssetLibraryPlacements/, when: 'before', status: 409, code: 'STATE_ERROR', detail: 'version not editable', times: 5 });
|
||||
const r = await go(p, [], 1);
|
||||
expect(r.out).toContain('refused to select header.png on the live version 1.0.0 (409)');
|
||||
expect(r.out).toContain('https://appstoreconnect.apple.com/apps/');
|
||||
expect(r.out).toContain('not tried (App Store Connect refused a placement on the live version above');
|
||||
expect(r.w).toEqual(['POST /v1/appAssetLibraryPlacements']);
|
||||
expect(s.asc.all('appAssetLibraryPlacements')).toHaveLength(0);
|
||||
});
|
||||
|
||||
test('one shared file for many locales: the dry run plans one upload, the run uploads once and places it per locale', async () => {
|
||||
const two = { ...CFG, languages: [{ id: 'en', apple: 'en-US', play: 'en-US' }, { id: 'tr', apple: 'tr', play: 'tr-TR' }] };
|
||||
s.asc.put({ type: 'appAssetLibraries', id: 'lib-1', attributes: {}, rels: { app: APP } });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue