2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Add divider to dashboard (#9884)

* Add divider to dashboard

* Tweak unit test
This commit is contained in:
Oliver
2025-06-27 16:55:57 +10:00
committed by GitHub
parent 5bf7a8ea31
commit aa4927ddb6
2 changed files with 6 additions and 3 deletions

View File

@ -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}
/>
<Divider p='xs' />
{layouts && loaded && availableWidgets.loaded ? (
<>
{widgetLabels.length == 0 ? (

View File

@ -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();