feat(KAN-41): edit allowed status transitions
This commit is contained in:
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user