mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 19:20:55 +00:00
Add divider to dashboard (#9884)
* Add divider to dashboard * Tweak unit test
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { t } from '@lingui/core/macro';
|
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 { useDisclosure, useHotkeys } from '@mantine/hooks';
|
||||||
import { IconInfoCircle } from '@tabler/icons-react';
|
import { IconInfoCircle } from '@tabler/icons-react';
|
||||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
@ -219,6 +219,7 @@ export default function DashboardLayout() {
|
|||||||
editing={editing}
|
editing={editing}
|
||||||
removing={removing}
|
removing={removing}
|
||||||
/>
|
/>
|
||||||
|
<Divider p='xs' />
|
||||||
{layouts && loaded && availableWidgets.loaded ? (
|
{layouts && loaded && availableWidgets.loaded ? (
|
||||||
<>
|
<>
|
||||||
{widgetLabels.length == 0 ? (
|
{widgetLabels.length == 0 ? (
|
||||||
|
@ -126,13 +126,15 @@ test('Part - Editing', async ({ browser }) => {
|
|||||||
.fill(keywords ? '' : 'table furniture');
|
.fill(keywords ? '' : 'table furniture');
|
||||||
|
|
||||||
// Test URL validation
|
// 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.waitForTimeout(200);
|
||||||
await page.getByRole('button', { name: 'Submit' }).click();
|
await page.getByRole('button', { name: 'Submit' }).click();
|
||||||
await page.getByText('Enter a valid URL.').waitFor();
|
await page.getByText('Enter a valid URL.').waitFor();
|
||||||
|
|
||||||
// Fill with an empty URL
|
// 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.waitForTimeout(200);
|
||||||
await page.getByRole('button', { name: 'Submit' }).click();
|
await page.getByRole('button', { name: 'Submit' }).click();
|
||||||
await page.getByText('Item Updated').waitFor();
|
await page.getByText('Item Updated').waitFor();
|
||||||
|
Reference in New Issue
Block a user