play release: read the production kind inside the release's own edit (no extra edit); the not-sent-for-review tests approve their first release
This commit is contained in:
parent
ae9d26d3f6
commit
db52afce1d
2 changed files with 14 additions and 14 deletions
|
|
@ -24,7 +24,7 @@ afterEach(() => { uninstallStores(); });
|
|||
|
||||
const edits = (what: string): string[] => s.calls.filter(c => c.method === 'POST' && c.path.includes(`:${what}`)).map(c => c.path.replace(/^.*\/edits\//, ''));
|
||||
const release = (p: ReturnType<typeof project>, extra: string[] = []) =>
|
||||
capture(() => playRelease(p.ctx(['--version-code', '5', '--internal', 'completed', '--production', 'completed', '--name', '1.0.1 (5)', '--yes', ...extra])));
|
||||
capture(() => playRelease(p.ctx(['--version-code', '5', '--internal', 'completed', '--production', 'completed', '--name', '1.0.1 (5)', '--yes', '--first-release', ...extra])));
|
||||
|
||||
describe('Play refuses the automatic send for review', () => {
|
||||
test('the 400 is recognised by its message (and a bad-request reason), nothing else', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue