Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ee5aaf4
AIV-P2-006: submit the scorecard, apply the previewed change and log it
ALFRED-LUCIFER Nov 26, 2026
9c0389e
Merge remote-tracking branch 'origin/main' into feat/AIV-P2-011-pack-…
ALFRED-LUCIFER Nov 26, 2026
4750e5b
AIV-P2-006: merge main
ALFRED-LUCIFER Nov 26, 2026
e70fd5f
AIV-P2-006: review fixes for the scorecard submit
ALFRED-LUCIFER Nov 26, 2026
775e81a
AIV-P2-006: merge main (AIV-P1-138, #635)
ALFRED-LUCIFER Nov 26, 2026
910d4c0
Merge remote-tracking branch 'origin/feat/AIV-P2-006-submit-scorecard…
ALFRED-LUCIFER Nov 26, 2026
7463953
AIV-P2-011: cited strengths, risks, Round 1 finding and recommendatio…
ALFRED-LUCIFER Nov 26, 2026
7bc67a7
AIV-P2-006: say what a submit logs, and read questions as the page does
ALFRED-LUCIFER Nov 26, 2026
ca42185
AIV-P2-011: prove the pack summaries against PostgreSQL
ALFRED-LUCIFER Nov 26, 2026
d25ed33
Merge remote-tracking branch 'origin/feat/AIV-P2-006-submit-scorecard…
ALFRED-LUCIFER Nov 26, 2026
fec1318
AIV-P2-006: test the questions' version gate; say "submitted" at the …
ALFRED-LUCIFER Nov 26, 2026
18b24a0
AIV-P2-011: Playwright for the pack page and preview, docs and the AD…
ALFRED-LUCIFER Nov 26, 2026
f5790a9
Merge remote-tracking branch 'origin/feat/AIV-P2-006-submit-scorecard…
ALFRED-LUCIFER Nov 26, 2026
1f78811
AIV-P2-012: the hiring owner records the pack's decisions; intake mov…
ALFRED-LUCIFER Nov 26, 2026
6f5c997
Merge remote-tracking branch 'origin/feat/AIV-P2-011-pack-recommendat…
ALFRED-LUCIFER Nov 26, 2026
1425075
Merge remote-tracking branch 'origin/main' into feat/AIV-P2-011-pack-…
ALFRED-LUCIFER Nov 26, 2026
aa2a5ed
AIV-P2-012: seed intake.inbox for the tenancy check, and document the…
ALFRED-LUCIFER Nov 26, 2026
218fdea
Merge remote-tracking branch 'origin/feat/AIV-P2-011-pack-recommendat…
ALFRED-LUCIFER Nov 26, 2026
ec6f586
AIV-P2-011: seed member_summary and the decisions inbox in the tenanc…
ALFRED-LUCIFER Nov 26, 2026
d7fc9a9
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (tenancy seeds …
ALFRED-LUCIFER Nov 26, 2026
25acfe2
AIV-P2-011: decisions.summariseMember@2, a strength states only what …
ALFRED-LUCIFER Nov 26, 2026
e11b4b5
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (summariseMembe…
ALFRED-LUCIFER Nov 26, 2026
8b8290a
AIV-P2-012: choosing for interview never reverses a recorded decision
ALFRED-LUCIFER Nov 26, 2026
f2f0884
AIV-P2-011: review fixes: action decided in code, outages retried, cl…
ALFRED-LUCIFER Nov 26, 2026
c82480a
AIV-P2-012: Record the decision in a card, read-only once recorded, a…
ALFRED-LUCIFER Nov 26, 2026
3a2aeb0
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (review fixes)
ALFRED-LUCIFER Nov 26, 2026
62c43a6
AIV-P2-011: retry only transient outages, decisions.summariseMember@3…
ALFRED-LUCIFER Nov 26, 2026
8e89a54
AIV-P2-011: a noun-phrase focus on the card, the snapshot read named …
ALFRED-LUCIFER Nov 26, 2026
fe6e31c
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (summariseMembe…
ALFRED-LUCIFER Nov 26, 2026
03e6943
AIV-P2-011: competency names matched as whole phrases, a strength's e…
ALFRED-LUCIFER Nov 26, 2026
eaf2238
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (competency_unc…
ALFRED-LUCIFER Nov 26, 2026
df40c17
AIV-P2-011: restore-default step made repeatable; case and escaping o…
ALFRED-LUCIFER Nov 26, 2026
7f2f276
AIV-P2-012: merge feat/AIV-P2-011-pack-recommendation (settings spec,…
ALFRED-LUCIFER Nov 26, 2026
aa222f1
AIV-P2-012: merge origin/main (#640 squashed as 61ad84f9)
ALFRED-LUCIFER Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions apps/backend/worker/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ const {
readEvidenceForJobAsSystem,
} = await import('@credalent/evidence/composition');
const { createIdentity } = await import('@credalent/identity/composition');
const { PackMembersAddedV1, PackReadyV1 } = await import('@credalent/decisions');
const { createPackSummaryHandlers, PACK_SUMMARY_QUEUE } = await import('@credalent/decisions/composition');
const { DecisionsRecordedV1, PackMembersAddedV1, PackReadyV1 } = await import('@credalent/decisions');
const { createPackSummaryHandlers, PACK_SUMMARY_QUEUE, readDecisionsAsSystem } =
await import('@credalent/decisions/composition');
const { InterviewCompletedV1, InterviewScheduledV1, MeetingSummarySubmittedV1 } = await import('@credalent/interviews');
const { createSummaryHandlers, SUMMARY_QUEUE } = await import('@credalent/interviews/composition');
const { ApplicationReceivedV1 } = await import('@credalent/intake');
const { createApplicationReads, readApplicationSourceAsSystem } = await import('@credalent/intake/composition');
const { createApplicationReads, createDecisionStageHandler, readApplicationSourceAsSystem } =
await import('@credalent/intake/composition');
const { createAiTokenBudget } = await import('@credalent/workspaces/composition');
const { CatalogueEvalRequestedV1, JobPublishedV1, JobUnpublishedV1, RubricApprovedV1 } =
await import('@credalent/jobs');
Expand Down Expand Up @@ -121,9 +123,8 @@ const githubApp = env.GITHUB_APP_ID && env.GITHUB_APP_PRIVATE_KEY && env.GITHUB_
const fileReading = Boolean(env.AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT && env.AZURE_STORAGE_BLOB_URL);
// shortcut: `files` (FileClean.v1, FileRejected.v1) is relayed only with file reading, their one consumer (AIV-P1-025).
// `interviews` is relayed for MeetingSummarySubmitted.v1 (AIV-P1-115); its other two events are parked in QUEUES below.
// `decisions` is relayed for PackReady.v1 and PackMembersAdded.v1, the pack summaries (AIV-P2-011).
// shortcut: DecisionsRecorded.v1 (AIV-P2-009) has no queue: it waits unsent in decisions.outbox, retried by the relay,
// until its consumers exist (the stage change in intake, the decision email drafts in notifications) and map it.
// `decisions` is relayed for PackReady.v1 and PackMembersAdded.v1, the pack summaries (AIV-P2-011), and for
// DecisionsRecorded.v1, the stage change in intake (AIV-P2-012).
const OUTBOXES = [
'candidates',
'jobs',
Expand Down Expand Up @@ -153,6 +154,10 @@ const QUEUES: Record<string, string> = {
// A pack's members to summarise (AIV-P2-011): always consumed; with no model each is stored "Summary unavailable".
[PackReadyV1.type]: PACK_SUMMARY_QUEUE,
[PackMembersAddedV1.type]: PACK_SUMMARY_QUEUE,
// A hiring owner's recorded decisions (AIV-P2-012): intake moves each decided candidate's stage. Always consumed.
// shortcut: on the pack summaries' queue, which every environment has; move both to a `decisions` queue
// (infra/modules/messaging.bicep) when the decision email drafts (AIV-P2-073) add a consumer of their own.
[DecisionsRecordedV1.type]: PACK_SUMMARY_QUEUE,
// shortcut: nothing consumes these yet (applying from the candidate site is AIV-P3-008), so they dead-letter after the
// 14-day TTL like PersonCreated.v1 above; that ticket's consumer replaces this note.
[JobPublishedV1.type]: 'candidates',
Expand Down Expand Up @@ -303,6 +308,14 @@ const identity = createIdentity(appDb, { trustedIssuer: 'worker: reads display n
now,
}),
);
// The stage after a recorded decision (AIV-P2-012): "Round 2 shortlist" or "Not advanced", audited as the hiring owner's.
(CONSUMERS[PACK_SUMMARY_QUEUE] ??= []).push(
createDecisionStageHandler({
event: DecisionsRecordedV1,
decisionsOf: readDecisionsAsSystem,
audit: createAudit(appDb, now),
}),
);
if (mapping)
evidenceHandlers.push(
...createEvidenceMappingHandlers({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ describe('Scenario: Preview, then confirm (AIV-P1-114)', () => {
});
});

/** AIV-P2-012: Sara on the Round 2 shortlist and Arjun not advanced, by the hiring owner's recorded decision. */
const decidedStage = (name: string | null) =>
name === 'Sara Al Qahtani' ? 'round2_shortlist' : name === 'Arjun Menon' ? 'not_advanced' : null;

describe('Scenario: Someone already chosen is not chosen twice (AIV-P1-114)', () => {
it('marks them "Already chosen for interview", counts only the others, and their row shows the next action', async () => {
const rows = nine.map((row) => (row.name === 'Sara Al Qahtani' ? { ...row, stage: 'interview' as const } : row));
Expand All @@ -475,6 +479,27 @@ describe('Scenario: Someone already chosen is not chosen twice (AIV-P1-114)', ()
expect(preview().textContent).toContain('Sara Al QahtaniAlready chosen for interview');
expect(within(preview()).getByRole('button', { name: 'Choose 1 for interview' })).toBeTruthy();
});

// AIV-P2-012: a recorded decision is never reversed by choosing the person for Round 1 again.
// SAFETY: mutation check: chosenOrDecided returned `stage === 'interview'` only -> this test failed (Sara and Arjun counted to choose)
it('someone on the Round 2 shortlist or not advanced is not counted, the preview says why, and their row shows the stage', async () => {
choosable(nine.map((row) => ({ ...row, stage: decidedStage(row.name) ?? row.stage })));
const rows = bodyRows();
expect(rows.find((row) => row.textContent.includes('Sara Al Qahtani'))?.textContent).toContain('Round 2 shortlist');
expect(rows.find((row) => row.textContent.includes('Arjun Menon'))?.textContent).toContain('Not advanced');
await pick('Sara Al Qahtani');
await pick('Arjun Menon');
await pick('Daniel Novak');
await userEvent.click(within(bar()).getByRole('button', { name: 'Choose for interview' }));
expect(within(preview()).getByRole('heading').textContent).toBe('Preview: 1 person chosen for interview');
expect(preview().textContent).toContain(
'Sara Al QahtaniOn the Round 2 shortlist by the hiring owner’s decision, so not chosen again',
);
expect(preview().textContent).toContain(
'Arjun MenonNot advanced by the hiring owner’s decision, so not chosen again',
);
expect(within(preview()).getByRole('button', { name: 'Choose 1 for interview' })).toBeTruthy();
});
});

describe('Scenario: Cancel changes nothing (AIV-P1-114)', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
// @vitest-environment jsdom
import { intlConfig } from '@credalent/i18n';
import { IntlProvider } from '@credalent/i18n/react';
import { cleanup, render, screen, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
import type { PackPage } from '@/features/decision-pack/domain/pack.ts';
import { PackClient } from './PackClient.tsx';

// AIV-P2-012: "Record the decision" on the pack, with its controller; the server action and the router are faked. The
// hiring owner's authority and the stored decisions are proven against PostgreSQL in tests/integration. Synthetic cast.
const fake = vi.hoisted(() => ({ record: vi.fn(), refresh: vi.fn() }));
vi.mock('@/features/decision-pack/services/recordDecisions.ts', () => ({ recordDecisions: fake.record }));
vi.mock('next/navigation', () => ({ useRouter: () => ({ refresh: fake.refresh }) }));
vi.mock('next/link', () => ({
default: ({ href, children, ...rest }: { href: string; children: React.ReactNode }) => (
<a href={href} {...rest}>
{children}
</a>
),
}));

let intl: Awaited<ReturnType<typeof intlConfig>>;
beforeAll(async () => {
intl = await intlConfig('en', 'Asia/Dubai');
});
afterEach(() => {
cleanup();
vi.resetAllMocks();
});

const id = (n: number) => `0190d4a2-0000-7000-9000-${String(n).padStart(12, '0')}`;
const [JOB, PACK, SARA, ARJUN, HUDA] = [id(1), id(2), id(21), id(22), id(23)];
const NAMES = ['Sara Al Qahtani', 'Arjun Menon', 'Huda Al Mansoori'];
const WHY = 'Strong on the two heaviest competencies.';
const decidedAt = new Date('2026-11-18T09:30:00.000Z');
beforeEach(() => fake.record.mockResolvedValue({ ok: true, decidedAt }));

const pack = (over: Partial<PackPage> = {}): PackPage => ({
jobId: JOB,
packId: PACK,
name: 'Round 2 shortlist',
job: 'Senior AI Engineer',
preparedAt: new Date('2026-11-17T08:00:00.000Z'),
rubricVersion: 2,
role: null,
members: [SARA, ARJUN, HUDA].map((candidateId, i) => ({
candidateId,
name: NAMES[i] ?? null,
backedScore: 68,
upperBound: 84,
added: null,
// Credalent recommends advancing Sara: it must not pre-select her decision.
summary: {
status: 'ready',
summary: {
strengths: [],
risks: [],
round1: null,
recommendation: { action: 'advance', focus: null, citations: [] },
},
},
decision: null,
})),
others: 2,
mayDecide: true,
decided: null,
...over,
});
const show = (page: PackPage) =>
render(
<IntlProvider {...intl}>
<PackClient pack={page} />
</IntlProvider>,
);
const group = (name: string) => screen.getByRole('radiogroup', { name: `Your decision for ${name}` });
const choose = (name: string, option: string) =>
userEvent.click(within(group(name)).getByRole('radio', { name: option }));

describe('Scenario: Record decisions', () => {
it('nothing is chosen at first, even where Credalent recommends advancing', () => {
show(pack());
for (const name of NAMES)
expect(
within(group(name))
.getAllByRole('radio')
.map((r) => (r as HTMLInputElement).checked),
).toEqual([false, false, false]);
expect(screen.getByText(/No candidate is contacted until you send a message yourself\./)).toBeTruthy();
});

// SAFETY: mutation check: onRecord opened the preview without the undecided() check -> this test failed (preview shown)
it('Scenario: Every candidate needs a choice: nothing for Huda, "Record decisions" says so and records nothing', async () => {
show(pack());
await choose('Sara Al Qahtani', 'Advance to Round 2');
await choose('Arjun Menon', 'Advance to Round 2');
await userEvent.click(screen.getByRole('button', { name: 'Record decisions' }));
expect(screen.getByRole('alert').textContent).toBe('Choose a decision for Huda Al Mansoori');
expect(group('Huda Al Mansoori').getAttribute('aria-invalid')).toBe('true');
expect(screen.queryByRole('region', { name: /^Preview/ })).toBeNull();
expect(fake.record).not.toHaveBeenCalled();
});

// SAFETY: mutation check: dropped `|| Boolean(record?.recordedAt)` from readOnly in DecisionPack -> this test failed (choices editable before the refresh)
it('advance for all three, previewed with each stage and a reason, then recorded once on Confirm', async () => {
const { rerender } = show(pack());
for (const name of NAMES) await choose(name, 'Advance to Round 2');
await userEvent.click(screen.getByRole('button', { name: 'Record decisions' }));
const preview = screen.getByRole('region', { name: 'Preview: record 3 decisions' });
expect(within(preview).getAllByText('Advance to Round 2. The stage becomes Round 2 shortlist.')).toHaveLength(3);
expect(preview.textContent).toContain('Nothing changes until you confirm.');
// One primary button in view: "Record decisions" gives way to the preview's Confirm.
expect(screen.queryByRole('button', { name: 'Record decisions' })).toBeNull();
const confirm = within(preview).getByRole('button', { name: 'Record 3 decisions' });
expect((confirm as HTMLButtonElement).disabled).toBe(true);
await userEvent.type(within(preview).getByRole('textbox', { name: /^Reason/ }), WHY);
await userEvent.click(confirm);
expect(fake.record).toHaveBeenCalledTimes(1);
expect(fake.record).toHaveBeenCalledWith({
packId: PACK,
decisions: [SARA, ARJUN, HUDA].map((candidateId) => ({ candidateId, decision: 'advance' })),
reason: WHY,
});
expect(fake.refresh).toHaveBeenCalled();
// Before the page is read again: the confirmation, the choices read-only as recorded, and no way to record twice.
expect(screen.getByRole('status').textContent).toBe(
'Decisions recorded by you on 18 Nov 2026 and added to the audit trail. Schedule Round 2 interviews',
);
for (const name of NAMES) {
const advance = within(group(name)).getByRole('radio', { name: 'Advance to Round 2' });
expect([(advance as HTMLInputElement).checked, advance.matches(':disabled')]).toEqual([true, true]);
}
expect(screen.queryByRole('button', { name: 'Record decisions' })).toBeNull();
// The page re-reads the decided pack.
rerender(
<IntlProvider {...intl}>
<PackClient
pack={pack({
decided: { by: 'Hassan Haddad', at: decidedAt },
members: pack().members.map((m) => ({ ...m, decision: 'advance' })),
})}
/>
</IntlProvider>,
);
expect(screen.getByRole('status').textContent).toBe(
'Decisions recorded by you on 18 Nov 2026 and added to the audit trail. Schedule Round 2 interviews',
);
expect(screen.getByRole('link', { name: 'Schedule Round 2 interviews' }).getAttribute('href')).toBe(
`/app/jobs/${JOB}/interviews`,
);
});

it('do not advance and hold say what happens to the stage; a refused record keeps the preview and says nothing was recorded', async () => {
fake.record.mockResolvedValue({ ok: false, error: 'failed' });
show(pack());
await choose('Sara Al Qahtani', 'Advance to Round 2');
await choose('Arjun Menon', 'Do not advance');
await choose('Huda Al Mansoori', 'Hold');
await userEvent.click(screen.getByRole('button', { name: 'Record decisions' }));
const preview = screen.getByRole('region', { name: 'Preview: record 3 decisions' });
expect(within(preview).getByText('Do not advance. The stage becomes Not advanced.')).toBeTruthy();
expect(within(preview).getByText('Hold. The stage stays as it is.')).toBeTruthy();
await userEvent.type(within(preview).getByRole('textbox', { name: /^Reason/ }), WHY);
await userEvent.click(within(preview).getByRole('button', { name: 'Record 3 decisions' }));
expect(within(preview).getByRole('alert').textContent).toBe(
'That did not go through. Nothing was recorded. Try again.',
);
expect(fake.refresh).not.toHaveBeenCalled();
});
});

describe('Scenario: Only the authorised hiring owner', () => {
it('a recruiter sees the choices read-only with "Only the hiring owner can record decisions", and no way to record', () => {
show(pack({ mayDecide: false }));
for (const name of NAMES)
expect(
within(group(name))
.getAllByRole('radio')
.every((r) => r.matches(':disabled')),
).toBe(true);
expect(screen.getByText('Only the hiring owner can record decisions.')).toBeTruthy();
expect(screen.queryByRole('button', { name: 'Record decisions' })).toBeNull();
});
});

describe('Scenario: Already decided', () => {
it('reopened, the decisions are read-only, each shown, with who recorded them and when', () => {
show(
pack({
decided: { by: 'Hassan Haddad', at: decidedAt },
members: pack().members.map((m, i) => ({ ...m, decision: i === 1 ? 'do_not_advance' : 'advance' })),
}),
);
const arjun = within(group('Arjun Menon')).getByRole('radio', { name: 'Do not advance' }) as HTMLInputElement;
expect([arjun.checked, arjun.matches(':disabled')]).toEqual([true, true]);
expect(
(within(group('Sara Al Qahtani')).getByRole('radio', { name: 'Advance to Round 2' }) as HTMLInputElement).checked,
).toBe(true);
expect(
screen.getByText(/^Decisions recorded by Hassan Haddad on 18 Nov 2026 and added to the audit trail\./),
).toBeTruthy();
expect(screen.queryByRole('button', { name: 'Record decisions' })).toBeNull();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use client';

import { DecisionPack } from '@/features/decision-pack/components/DecisionPack.tsx';
import type { PackPage } from '@/features/decision-pack/domain/pack.ts';
import { useRecordDecisionsController } from '@/features/decision-pack/hooks/useRecordDecisionsController.ts';

/** The decision pack with "Record the decision" (AIV-P2-012): the hiring owner's choices live in the controller. */
export function PackClient({ pack }: { pack: PackPage }) {
const record = useRecordDecisionsController(pack);
return <DecisionPack view={{ status: 'ready', pack }} record={record} />;
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { notFound } from 'next/navigation';
import { DecisionPack } from '@/features/decision-pack/components/DecisionPack.tsx';
import { loadPack } from '@/features/decision-pack/services/loadPack.ts';
import { jobPageMetadata } from '../../metadata.ts';
import { PackClient } from './PackClient.tsx';

export const generateMetadata = jobPageMetadata('pack');

// A decision pack built from the ranking (AIV-P2-010). Loading and error states: loading.tsx and error.tsx beside this
// page. The decisions module checks the member's job scope itself.
// A decision pack built from the ranking (AIV-P2-010), where the hiring owner records its decisions (AIV-P2-012).
// Loading and error states: loading.tsx and error.tsx beside this page. The decisions module checks the member's job
// scope itself.
export default async function PackPage({ params }: PageProps<'/app/jobs/[jobId]/packs/[packId]'>) {
const { jobId, packId } = await params;
const pack = await loadPack(jobId, packId);
// No workspace: the recruiter layout shows the create-workspace page instead.
if (!pack) return null;
if (pack === 'notFound') notFound();
return <DecisionPack view={{ status: 'ready', pack }} />;
return <PackClient pack={pack} />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const member = (
name: string,
summary: CardSummary,
added: PackPage['members'][number]['added'] = null,
) => ({ candidateId, name, backedScore: 68, upperBound: 84, added, summary });
) => ({ candidateId, name, backedScore: 68, upperBound: 84, added, summary, decision: null });
const page = (members: PackPage['members']): PackPage => ({
jobId: JOB,
packId: PACK,
Expand All @@ -76,6 +76,8 @@ const page = (members: PackPage['members']): PackPage => ({
},
members,
others: 4,
mayDecide: false,
decided: null,
});
const show = (pack: PackPage) =>
render(
Expand Down Expand Up @@ -150,14 +152,19 @@ describe('DecisionPack', () => {
});

// SAFETY: mutation check: set hasFocus to 'no' in SummaryText -> this test failed (no focus)
it("Scenario: Recommendation is labelled as Credalent's, and no decision option is offered or pre-selected", () => {
// AIV-P2-012 adds the hiring owner's choices: offered, read-only here (no controller), and none pre-selected.
it("Scenario: Recommendation is labelled as Credalent's, and no decision option is pre-selected", () => {
const huda = { ...sara, recommendation: { ...sara.recommendation, focus: 'Cost and reliability' } };
show(page([member('p3', 'Huda Al Mansoori', { status: 'ready', summary: huda })]));
const card = screen.getByRole('region', { name: 'Huda Al Mansoori' });
expect(within(card).getByText("Credalent's recommendation:").textContent).toBe(
"Credalent's recommendation: advance, and look into Cost and reliability next",
);
expect(screen.queryAllByRole('radio')).toEqual([]);
expect(
within(card)
.getAllByRole('radio')
.map((r) => (r as HTMLInputElement).checked),
).toEqual([false, false, false]);
expect(screen.queryAllByRole('checkbox')).toEqual([]);
expect(
document.querySelectorAll('[aria-pressed="true"], [aria-checked="true"], [aria-selected="true"]'),
Expand Down
Loading
Loading