mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
Add ADA texts to help with testins / screen readers
This commit is contained in:
@ -282,7 +282,12 @@ export default function Scan() {
|
|||||||
text={t`This page can be used for continuously scanning items and taking actions on them.`}
|
text={t`This page can be used for continuously scanning items and taking actions on them.`}
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
<Button onClick={toggleFullscreen} size="sm" variant="subtle">
|
<Button
|
||||||
|
onClick={toggleFullscreen}
|
||||||
|
size="sm"
|
||||||
|
variant="subtle"
|
||||||
|
title={t`Toggle Fullscreen`}
|
||||||
|
>
|
||||||
{fullscreen ? <IconArrowsMaximize /> : <IconArrowsMinimize />}
|
{fullscreen ? <IconArrowsMaximize /> : <IconArrowsMinimize />}
|
||||||
</Button>
|
</Button>
|
||||||
</Group>
|
</Group>
|
||||||
@ -366,7 +371,11 @@ export default function Scan() {
|
|||||||
>
|
>
|
||||||
<Trans>History</Trans>
|
<Trans>History</Trans>
|
||||||
</TitleWithDoc>
|
</TitleWithDoc>
|
||||||
<ActionIcon color="red" onClick={btnDeleteFullHistory}>
|
<ActionIcon
|
||||||
|
color="red"
|
||||||
|
onClick={btnDeleteFullHistory}
|
||||||
|
title={t`Delete History`}
|
||||||
|
>
|
||||||
<IconTrash />
|
<IconTrash />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
|
@ -16,7 +16,7 @@ async function defaultScanTest(page, search_text) {
|
|||||||
await page.getByRole('cell', { name: '123' }).click();
|
await page.getByRole('cell', { name: '123' }).click();
|
||||||
await page.getByRole('cell', { name: 'manually' }).click();
|
await page.getByRole('cell', { name: 'manually' }).click();
|
||||||
await page.getByRole('button', { name: 'Lookup part' }).click();
|
await page.getByRole('button', { name: 'Lookup part' }).click();
|
||||||
await page.getByRole('button', { name: 'Delete' }).click();
|
await page.getByRole('button', { name: 'Delete', exact: true }).click();
|
||||||
|
|
||||||
await page.getByPlaceholder('Enter item serial or data').fill(search_text);
|
await page.getByPlaceholder('Enter item serial or data').fill(search_text);
|
||||||
await page.getByPlaceholder('Enter item serial or data').press('Enter');
|
await page.getByPlaceholder('Enter item serial or data').press('Enter');
|
||||||
|
Reference in New Issue
Block a user