From d3e1a09363a829bef95f872ce21e65171722a16c Mon Sep 17 00:00:00 2001 From: Volha Mardvilka Date: Fri, 6 Sep 2024 13:04:33 +0000 Subject: [PATCH 1/2] 365059335: (fix) [GAR 1.1] change device tile structure to allow read by Orca screen reader --- .../device-item/device-item.component.html | 38 +++++++++++-------- .../device-item/device-item.component.scss | 22 ++++++++++- .../device-item/device-item.component.spec.ts | 8 ---- .../testrun-initiate-form.component.spec.ts | 6 --- 4 files changed, 43 insertions(+), 31 deletions(-) diff --git a/modules/ui/src/app/components/device-item/device-item.component.html b/modules/ui/src/app/components/device-item/device-item.component.html index b3c3e5591..d5a7548c7 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.html +++ b/modules/ui/src/app/components/device-item/device-item.component.html @@ -14,36 +14,42 @@ limitations under the License. --> + +
+ +
+ + +

+ {{ device.test_pack }} + matTooltip="This device will be tested for Qualification."> + matTooltip="This device will be tested for the Pilot program."> {{ device.manufacturer }} - -

+

+

{{ device.model }} -

-
+

+

{{ device.mac_addr }} -

- +

+
{ expect(clickSpy).toHaveBeenCalledWith(component.device); }); - - it('should have tabindex', () => { - component.tabIndex = -2; - fixture.detectChanges(); - const item = compiled.querySelector('.device-item') as HTMLElement; - - expect(item.tabIndex).toBe(-2); - }); }); describe('with device view as WithActions', () => { diff --git a/modules/ui/src/app/pages/testrun/components/testrun-initiate-form/testrun-initiate-form.component.spec.ts b/modules/ui/src/app/pages/testrun/components/testrun-initiate-form/testrun-initiate-form.component.spec.ts index 6fe08782b..f6f5adf7c 100644 --- a/modules/ui/src/app/pages/testrun/components/testrun-initiate-form/testrun-initiate-form.component.spec.ts +++ b/modules/ui/src/app/pages/testrun/components/testrun-initiate-form/testrun-initiate-form.component.spec.ts @@ -304,12 +304,6 @@ describe('ProgressInitiateFormComponent', () => { expect(deviceItem).toBeTruthy(); }); - it('should have tabindex -1 for device item', () => { - const deviceItem = compiled.querySelector('app-device-item button'); - - expect((deviceItem as HTMLElement).tabIndex).toBe(-1); - }); - it('should display firmware if device selected', () => { const firmware = compiled.querySelector('input'); From d84ec0a4497db531893efd3c98aa7070d5751dc1 Mon Sep 17 00:00:00 2001 From: Volha Mardvilka Date: Fri, 6 Sep 2024 13:13:21 +0000 Subject: [PATCH 2/2] 365059335: (fix) [GAR 1.1] change device tile - remove unnecessary aria label --- .../src/app/components/device-item/device-item.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/src/app/components/device-item/device-item.component.html b/modules/ui/src/app/components/device-item/device-item.component.html index d5a7548c7..f1586f9a0 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.html +++ b/modules/ui/src/app/components/device-item/device-item.component.html @@ -43,10 +43,10 @@ matTooltip="This device will be tested for the Pilot program."> {{ device.manufacturer }}

-

+

{{ device.model }}

-

+

{{ device.mac_addr }}