diff --git a/src/frontend/src/components/dashboard/DashboardLayout.tsx b/src/frontend/src/components/dashboard/DashboardLayout.tsx index 8d1cbc0352..aa031fa081 100644 --- a/src/frontend/src/components/dashboard/DashboardLayout.tsx +++ b/src/frontend/src/components/dashboard/DashboardLayout.tsx @@ -1,5 +1,5 @@ import { t } from '@lingui/core/macro'; -import { Alert, Card, Center, Loader, Text } from '@mantine/core'; +import { Alert, Card, Center, Divider, Loader, Text } from '@mantine/core'; import { useDisclosure, useHotkeys } from '@mantine/hooks'; import { IconInfoCircle } from '@tabler/icons-react'; import { useCallback, useEffect, useMemo, useState } from 'react'; @@ -219,6 +219,7 @@ export default function DashboardLayout() { editing={editing} removing={removing} /> + {layouts && loaded && availableWidgets.loaded ? ( <> {widgetLabels.length == 0 ? ( diff --git a/src/frontend/tests/pages/pui_part.spec.ts b/src/frontend/tests/pages/pui_part.spec.ts index fe6aba0197..8b3efbd08d 100644 --- a/src/frontend/tests/pages/pui_part.spec.ts +++ b/src/frontend/tests/pages/pui_part.spec.ts @@ -126,13 +126,15 @@ test('Part - Editing', async ({ browser }) => { .fill(keywords ? '' : 'table furniture'); // Test URL validation - await page.getByLabel('text-field-link').fill('htxp-??QQQ++'); + await page + .getByRole('textbox', { name: 'text-field-link' }) + .fill('htxp-??QQQ++'); await page.waitForTimeout(200); await page.getByRole('button', { name: 'Submit' }).click(); await page.getByText('Enter a valid URL.').waitFor(); // Fill with an empty URL - await page.getByLabel('text-field-link').fill(''); + await page.getByRole('textbox', { name: 'text-field-link' }).fill(''); await page.waitForTimeout(200); await page.getByRole('button', { name: 'Submit' }).click(); await page.getByText('Item Updated').waitFor();