#304: custom fonts in the pickers, an admin screen, and the licence page #313
@ -63,7 +63,11 @@ test('the admin form previews and publishes the privacy policy', async ({ browse
|
|||||||
await expect(editor.locator('.legal-editor__preview strong')).toHaveText('only what is needed');
|
await expect(editor.locator('.legal-editor__preview strong')).toHaveText('only what is needed');
|
||||||
|
|
||||||
await page.getByRole('button', { name: /save legal pages|rechtsseiten speichern/i }).click();
|
await page.getByRole('button', { name: /save legal pages|rechtsseiten speichern/i }).click();
|
||||||
await expect(page.getByRole('status')).toBeVisible();
|
// Auf den Abschnitt gescopet: seit der Schriftverwaltung (#304) hat /admin
|
||||||
|
// weitere Live-Regionen (Upload-Fortschritt), und ein seitenweites
|
||||||
|
// getByRole('status') wäre mehrdeutig. Gemeint war immer die
|
||||||
|
// Erfolgsmeldung DIESES Formulars.
|
||||||
|
await expect(page.locator('.legal-settings').getByRole('status')).toBeVisible();
|
||||||
await admin.close();
|
await admin.close();
|
||||||
|
|
||||||
const anonymous = await browser.newContext({ baseURL: BASE_URL });
|
const anonymous = await browser.newContext({ baseURL: BASE_URL });
|
||||||
|
|||||||
@ -459,7 +459,10 @@ function LegalSettingsForm({ settings }: { settings: InstanceSettings }): React.
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="settings-section">
|
// Named class so the e2e can scope its success-message assertion to this
|
||||||
|
// form: /admin has more than one live region since #304 (upload progress),
|
||||||
|
// and a page-wide getByRole('status') became ambiguous.
|
||||||
|
<section className="settings-section legal-settings">
|
||||||
<h2>{t('admin.title')}</h2>
|
<h2>{t('admin.title')}</h2>
|
||||||
<p className="field__hint">{t('admin.hint')}</p>
|
<p className="field__hint">{t('admin.hint')}</p>
|
||||||
<form onSubmit={(event) => void onSubmit(event)} noValidate>
|
<form onSubmit={(event) => void onSubmit(event)} noValidate>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user