feat(KAN-32): add hierarchical acceptance criteria checklist
This commit is contained in:
@@ -478,7 +478,6 @@ if (serve) {
|
||||
'story_points',
|
||||
'parent_ticket_id',
|
||||
'description',
|
||||
'acceptance_criteria_checklist',
|
||||
'is_blocked',
|
||||
'blocked_comment',
|
||||
'field-1',
|
||||
@@ -489,6 +488,8 @@ if (serve) {
|
||||
`Missing editor: ${field}`,
|
||||
);
|
||||
}
|
||||
assert.match(html, /aria-label="Criterion 1"/);
|
||||
assert.match(html, /Add criterion/);
|
||||
assert.match(html, /Create branch/);
|
||||
assert.match(html, /Save link/);
|
||||
assert.match(html, /Remove/);
|
||||
@@ -505,7 +506,7 @@ if (serve) {
|
||||
const empty = await render('?empty');
|
||||
for (const text of [
|
||||
'No description has been added yet.',
|
||||
'No acceptance criteria have been added yet.',
|
||||
'No acceptance criteria yet.',
|
||||
'No status',
|
||||
'Unassigned',
|
||||
'No author',
|
||||
@@ -540,6 +541,10 @@ if (serve) {
|
||||
assert.match(unavailable, /Ticket creation needs at least one type/);
|
||||
for (const creating of [false, true]) {
|
||||
const invalid = await render('?rejected&allErrors', creating);
|
||||
assert.match(
|
||||
invalid,
|
||||
/aria-describedby="[^"]+-hint [^"]+-error"|No acceptance criteria yet/,
|
||||
);
|
||||
for (const id of [
|
||||
'title',
|
||||
'description',
|
||||
@@ -548,7 +553,6 @@ if (serve) {
|
||||
'assignee_user_id',
|
||||
'parent_ticket_id',
|
||||
'story_points',
|
||||
'acceptance_criteria_checklist',
|
||||
]) {
|
||||
assert.ok(invalid.includes(`id="${id}-error"`));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user