diff --git a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts
index 4965779de..b03d3d9f6 100644
--- a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts
+++ b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.spec.ts
@@ -87,12 +87,17 @@ describe('DownloadReportZipComponent', () => {
}));
});
- it('should have title', () => {
+ it('should have title and accessible role and label', () => {
component.ngOnInit();
+ fixture.detectChanges();
expect(component.tooltip.message).toEqual(
'Download zip for Testrun # Delta 03-DIN-CPU 1.2.2 22 Jun 2023 9:20'
);
+ expect(compiled.getAttribute('role')).toEqual('button');
+ expect(compiled.getAttribute('aria-label')).toEqual(
+ 'Download zip for Testrun # Delta 03-DIN-CPU 1.2.2 22 Jun 2023 9:20'
+ );
});
});
diff --git a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts
index 5460b087e..48afc8af5 100644
--- a/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts
+++ b/modules/ui/src/app/components/download-report-zip/download-report-zip.component.ts
@@ -77,6 +77,16 @@ export class DownloadReportZipComponent
@HostBinding('tabIndex')
readonly tabIndex = 0;
+ @HostBinding('attr.role')
+ readonly role = 'button';
+
+ @HostBinding('attr.aria-label')
+ get ariaLabel(): string {
+ return this.data
+ ? `Download zip for Testrun # ${this.getTestRunId(this.data)}`
+ : 'Download ZIP file';
+ }
+
@HostListener('mouseenter')
@HostListener('keyup')
onEvent(): void {
diff --git a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html
index 914b03916..9ca9ec2b8 100644
--- a/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html
+++ b/modules/ui/src/app/components/download-zip-modal/download-zip-modal.component.html
@@ -15,7 +15,7 @@
-->
@if (data.testrunStatus) {
-
+
{{ data.testrunStatus.device.manufacturer }}
{{ data.testrunStatus.device.model }}
{{ data.testrunStatus.device.firmware }}
@@ -43,7 +43,9 @@
}
@if (!data.testrunStatus) {
- Download ZIP file
+ Download ZIP file
}
@if (profiles.length === 1) {
diff --git a/modules/ui/src/app/components/dynamic-form/dynamic-form.component.html b/modules/ui/src/app/components/dynamic-form/dynamic-form.component.html
index 708d8f42c..7791bfd0c 100644
--- a/modules/ui/src/app/components/dynamic-form/dynamic-form.component.html
+++ b/modules/ui/src/app/components/dynamic-form/dynamic-form.component.html
@@ -37,7 +37,10 @@
let-description="description"
let-options="options"
let-formControlName="formControlName">
-