2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Add ADA texts to help with testins / screen readers

This commit is contained in:
Matthias Mair
2024-05-06 07:42:54 +02:00
parent aa4550169b
commit 86e3a5bd58
2 changed files with 12 additions and 3 deletions

View File

@ -282,7 +282,12 @@ export default function Scan() {
text={t`This page can be used for continuously scanning items and taking actions on them.`}
/>
</Group>
<Button onClick={toggleFullscreen} size="sm" variant="subtle">
<Button
onClick={toggleFullscreen}
size="sm"
variant="subtle"
title={t`Toggle Fullscreen`}
>
{fullscreen ? <IconArrowsMaximize /> : <IconArrowsMinimize />}
</Button>
</Group>
@ -366,7 +371,11 @@ export default function Scan() {
>
<Trans>History</Trans>
</TitleWithDoc>
<ActionIcon color="red" onClick={btnDeleteFullHistory}>
<ActionIcon
color="red"
onClick={btnDeleteFullHistory}
title={t`Delete History`}
>
<IconTrash />
</ActionIcon>
</Group>

View File

@ -16,7 +16,7 @@ async function defaultScanTest(page, search_text) {
await page.getByRole('cell', { name: '123' }).click();
await page.getByRole('cell', { name: 'manually' }).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').press('Enter');