diff --git a/e2e/playwright/actions/src/tests/create-library.spec.ts b/e2e/playwright/actions/src/tests/create-library.spec.ts index 3b9b00a67..25f702135 100644 --- a/e2e/playwright/actions/src/tests/create-library.spec.ts +++ b/e2e/playwright/actions/src/tests/create-library.spec.ts @@ -145,10 +145,10 @@ test.describe('Create Libraries ', () => { await expect(libraryTable.getCellLinkByName(randomLibraryName).and(myLibrariesPage.page.getByTitle(randomLibraryDescription))).toBeVisible(); await libraryTable.getRowByName(randomLibraryName).click(); await libraryViewDetails.click(); - await expect(libraryDetails.getNameField('Name').getByText(randomLibraryName)).toBeVisible(); - await expect(libraryDetails.getIdField('Library ID').getByText(randomLibraryId)).toBeVisible(); - await expect(libraryDetails.getVisibilityField('Visibility').getByText(publicVisibility)).toBeVisible(); - await expect(libraryDetails.getDescriptionField(libraryDescriptionLabel).getByText(randomLibraryDescription)).toBeVisible(); + expect(await libraryDetails.getNameField('Name').locator('input').inputValue()).toBe(randomLibraryName); + expect(await libraryDetails.getIdField('Library ID').locator('input').inputValue()).toBe(randomLibraryId); + await expect(libraryDetails.getVisibilityField('Visibility').locator('.mat-select-value').getByText(publicVisibility)).toBeVisible(); + expect(await libraryDetails.getDescriptionField.inputValue()).toBe(randomLibraryDescription); await apiClientFactory.sites.deleteSite(randomLibraryId, { permanent: true }); }); diff --git a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.html b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.html index 220221205..7d80a4127 100644 --- a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.html +++ b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.html @@ -1,90 +1,11 @@ - -
-
-
-
- - - {{ 'LIBRARY.DIALOG.FORM.NAME' | translate }} - - - - - {{ form.controls.title.value }} - -
-
-
-
- -
-
-
-
- - - {{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }} - - - - - {{ form.controls.id.value }} - -
-
-
-
- -
-
-
-
- - - {{ 'LIBRARY.DIALOG.FORM.VISIBILITY' | translate }} - - - - - {{ visibilityLabel | translate }} - -
-
-
-
- -
-
-
-
- - - {{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }} - - - - - {{ form.controls.description?.value }} - -
-
-
-
-
- - - - - - +
- + - + - + {{ type.label | translate }} @@ -108,7 +29,7 @@ - +