Skip to content

Commit 8620552

Browse files
author
Andrea Barbasso
committed
[CST-15595] fix e2e tests
1 parent eccf1d0 commit 8620552

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/array-group/dynamic-form-array.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[ngClass]="getClass('element', 'control')">
66

77
<!-- Draggable Container -->
8-
<div role="listbox" #dropList cdkDropList cdkDropListLockAxis="y" (cdkDropListDropped)="moveSelection($event)">
8+
<div role="listbox" [attr.aria-label]="'dynamic-form-array.sortable-list.label' | translate" #dropList cdkDropList cdkDropListLockAxis="y" (cdkDropListDropped)="moveSelection($event)">
99
<!-- Draggable Items -->
1010
<div #sortableElement
1111
*ngFor="let groupModel of model.groups; let idx = index; let length = count"

src/app/shared/form/builder/ds-dynamic-form-ui/models/array-group/dynamic-form-array.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ import {
3232
DynamicFormValidationService,
3333
DynamicTemplateDirective,
3434
} from '@ng-dynamic-forms/core';
35-
import { TranslateService } from '@ngx-translate/core';
35+
import {
36+
TranslateModule,
37+
TranslateService,
38+
} from '@ngx-translate/core';
3639

3740
import { Relationship } from '../../../../../../core/shared/item-relationships/relationship.model';
3841
import { hasValue } from '../../../../../empty.util';
@@ -53,6 +56,7 @@ import { DynamicRowArrayModel } from '../ds-dynamic-row-array-model';
5356
CdkDragHandle,
5457
forwardRef(() => DsDynamicFormControlContainerComponent),
5558
NgTemplateOutlet,
59+
TranslateModule,
5660
],
5761
standalone: true,
5862
})

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6749,4 +6749,6 @@
67496749
"live-region.ordering.moved": "{{ itemName }}, moved to position {{ index }} of {{ length }}. Press up and down arrow keys to change position, SpaceBar to drop, Escape to cancel.",
67506750

67516751
"live-region.ordering.dropped": "{{ itemName }}, dropped at position {{ index }} of {{ length }}.",
6752+
6753+
"dynamic-form-array.sortable-list.label": "Sortable list",
67526754
}

0 commit comments

Comments
 (0)