feat(KAN-41): edit allowed status transitions

This commit is contained in:
2026-09-15 14:43:25 +02:00
parent 4518de5bde
commit c22a731ed9
6 changed files with 544 additions and 93 deletions
@@ -254,23 +254,6 @@ try {
.getByText('Building', { exact: true })
.waitFor();
assert.equal(await button('Edit column In progress').count(), 0);
await page.locator('summary').filter({ hasText: 'Status moves' }).click();
const transition = page.locator('details form').first();
const checkbox = transition.getByRole('checkbox').first();
await checkbox.check();
const move = page.waitForRequest((request) => request.method() === 'POST');
await transition.getByRole('button', { name: 'Save', exact: true }).click();
assert.equal(
new URL((await move).url()).pathname,
'/projects/1/settings/board/statuses/1/transitions',
);
assert.equal(
new URL((await move).url()).searchParams.get('_method'),
'PATCH',
);
assert.deepEqual((await move).postDataJSON(), {
allowed_ticket_status_ids: [await checkbox.getAttribute('value')],
});
assert.deepEqual(errors, []);
console.log(
'Workflow browser checks passed: CRUD payloads, server refresh, order, deletion protection, validation, retries, dirty forms, keyboard, responsive widths and both themes.',