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:
@ -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>
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user