|
|
|
@ -68,8 +68,8 @@ describe('Web UI - /app/preferences', () => {
|
|
|
|
const html = await res.text();
|
|
|
|
const html = await res.text();
|
|
|
|
|
|
|
|
|
|
|
|
expect(html).toContain('Preferencias de recordatorios');
|
|
|
|
expect(html).toContain('Preferencias de recordatorios');
|
|
|
|
// select de frecuencia y opción 'off' presente
|
|
|
|
// control de frecuencia (radio) con opción 'off' presente
|
|
|
|
expect(html).toContain('<option value="off"');
|
|
|
|
expect(html).toMatch(/<input[^>]+type="radio"[^>]+name="freq"[^>]+value="off"/);
|
|
|
|
// input type="time" con valor por defecto
|
|
|
|
// input type="time" con valor por defecto
|
|
|
|
expect(html).toContain('type="time"');
|
|
|
|
expect(html).toContain('type="time"');
|
|
|
|
expect(html).toContain('08:30');
|
|
|
|
expect(html).toContain('08:30');
|
|
|
|
|