diff --git a/frontend/e2e/RubrikenPage.spec.ts b/frontend/e2e/RubrikenPage.spec.ts index 4174e40..e1723b0 100644 --- a/frontend/e2e/RubrikenPage.spec.ts +++ b/frontend/e2e/RubrikenPage.spec.ts @@ -34,13 +34,18 @@ test( amtlicheLangüberschriftElement.fill('my long title') await expect(amtlicheLangüberschriftElement).toHaveValue('my long title') - const dokumentTyp = page.getByText('Dokumenttyp') + const dokumentTyp = page.getByText('Dokumenttyp *') await expect(dokumentTyp).toHaveCount(1) await dokumentTyp.fill('V') await expect(page.getByText('VR')).toHaveCount(1) await page.getByText('VR').click() await expect(dokumentTyp).toHaveValue('VR') // confirm selection by value + const dokumentTypZusatz = page.getByText('Dokumenttyp Zusatz') + await expect(dokumentTypZusatz).toHaveCount(1) + await dokumentTypZusatz.fill('Bekanntmachung') + await expect(dokumentTypZusatz).toHaveValue('Bekanntmachung') + const inkrafttretedatumElement = page.getByText('Datum des Inkrafttretens *') await expect(inkrafttretedatumElement).toHaveCount(1) zitierdatumElement.fill('thatshouldnotwork') diff --git a/frontend/src/routes/documentUnit/[documentNumber]/RubrikenPage.vue b/frontend/src/routes/documentUnit/[documentNumber]/RubrikenPage.vue index 66fa4b8..688782e 100644 --- a/frontend/src/routes/documentUnit/[documentNumber]/RubrikenPage.vue +++ b/frontend/src/routes/documentUnit/[documentNumber]/RubrikenPage.vue @@ -6,12 +6,14 @@ import InputField from '@/components/input/InputField.vue' import DateInput from '@/components/input/DateInput.vue' import ComboboxItemService from '@/services/comboboxItemService.ts' import Textarea from 'primevue/textarea' +import TextInput from '@/components/input/TextInput.vue' const selectedCourt = ref() const zitierdatum = ref() const inkrafttretedatum = ref() const ausserkrafttretedatum = ref() const selectedDocumentType = ref() +const documentTypeLongText = ref()