play release --dry: no bundle upload into a discarded edit (a long upload outlived it: edit expired); shows the planned tracks

This commit is contained in:
CRTkafa 2026-10-29 19:54:05 +07:00
parent ab69ce020c
commit f5296cc9e9
3 changed files with 17 additions and 0 deletions

View file

@ -573,6 +573,13 @@ describe('listing, appinfo, data safety and the owner commands: a second run wri
expect(s.play.committed).toHaveLength(1);
});
test('play release <aab> --dry: no upload, no track PUT (the bundle went into a discarded edit; a long upload outlived it: "This edit has expired")', async () => {
const p = project(CONFIG, { 'store/listing.md': LISTING, 'build/android/app.aab': makeAab('com.example.notes', 43) });
const r = await twice(() => playRelease(p.ctx([join(p.root, 'build/android/app.aab'), '--internal', 'completed', '--dry'])));
expect(r.first.filter(x => x.includes('/bundles') || x.startsWith('PUT '))).toEqual([]);
expect(s.play.committed).toHaveLength(0);
});
test('prices import (Play): changed regions written once, then the diff is empty', async () => {
const p = project({ ...CONFIG, products: [CONFIG.products![0]!] }, { 'store/prices.csv': 'product,store,region,currency,price\ncom.example.notes.pro,play,DE,EUR,3.49\n' });
await capture(() => playProducts(p.ctx([])));