Simplify CaCu distribution descriptions

This commit is contained in:
Angel Capetillo Zavala
2026-12-02 14:09:02 -06:00
parent 9ae8254dee
commit f119ba048a
2 changed files with 12 additions and 39 deletions
+7 -2
View File
@@ -64,6 +64,10 @@ test('indicadores cacu: its sections in order, each card read one mode at a time
});
// each card has no toggle of its own: the selector drives both
await expect(readings.getByRole('radio')).toHaveCount(0);
// no long description beside the bars: the cards read from their title, note and legend
await expect(readings).not.toContainText(
/Cada barra|Cada paciente cuenta una vez|«Detección inicial»|una barra vacía|«Positivo»/,
);
await expect(
readings
.locator('.group')
@@ -286,12 +290,13 @@ for (const card of ['cytology', 'genotype'] as const) {
});
}
test('rondas (simulado): the genotype card never shows the incomplete positives, and says where they went', async ({
test('rondas (simulado): the genotype card never shows the incomplete positives, and carries no long description', async ({
page,
}) => {
const { card, view } = await withRounds(page, 'as-is');
const readings = card(TITLES.genotype);
await expect(readings).toContainText('«Positivo»');
await expect(readings).not.toContainText('«Positivo»');
await expect(readings).not.toContainText('Cada barra');
await expect(readings.getByRole('rowheader')).not.toContainText([
'Otro de alto riesgo',
'incompleto',