diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-categories/dot-categories-list/dot-categories-list.component.html b/core-web/apps/dotcms-ui/src/app/portlets/dot-categories/dot-categories-list/dot-categories-list.component.html index f9b62081ce59..020eec06b11b 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-categories/dot-categories-list/dot-categories-list.component.html +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-categories/dot-categories-list/dot-categories-list.component.html @@ -8,9 +8,9 @@
+ data-testId="actions">
diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-containers/container-list/container-list.component.html b/core-web/apps/dotcms-ui/src/app/portlets/dot-containers/container-list/container-list.component.html index 89d6b9948a79..be1fa6ffa0b6 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-containers/container-list/container-list.component.html +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-containers/container-list/container-list.component.html @@ -3,9 +3,9 @@
{ it('should send event to filter keyword', () => { const elem = de.query(By.css('.dot-pages-listing-header__inputs input')); - elem.triggerEventHandler('input', { target: { value: 'test' } }); + elem.nativeElement.focus(); + elem.nativeElement.value = 'test'; + elem.triggerEventHandler('input'); expect(store.setKeyword).toHaveBeenCalledWith('test'); expect(store.getPages).toHaveBeenCalledWith({ offset: 0 }); @@ -239,7 +241,9 @@ describe('DotPagesListingPanelComponent', () => { it('should send event to filter keyword when cleaning', () => { const elem = de.query(By.css('.dot-pages-listing-header__inputs input')); - elem.triggerEventHandler('input', { target: { value: 'test' } }); + elem.nativeElement.focus(); + elem.nativeElement.value = 'test'; + elem.triggerEventHandler('input'); const elemClean = de.query( By.css('[data-testid="dot-pages-listing-header__keyword-input-clear"]') diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.html b/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.html index 0d099d33d92d..a4f8c988ea20 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.html +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.html @@ -28,7 +28,7 @@ type="button" pButton icon="pi pi-ellipsis-v" - attr.data-testid="bulkActions"> + data-testid="bulkActions">
diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.ts b/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.ts index 15fc44e052a1..e6bbf704f1d2 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.ts +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-templates/dot-template-list/dot-template-list.component.ts @@ -112,7 +112,8 @@ export class DotTemplateListComponent implements OnInit, OnDestroy { * @param {DotTemplate} { template } * @memberof DotTemplateListComponent */ - editTemplate(template: DotTemplate): void { + editTemplate(event: unknown): void { + const template = event as DotTemplate; this.isTemplateAsFile(template) ? this.dotSiteBrowserService.setSelectedFolder(template.identifier).subscribe(() => { this.dotRouterService.goToSiteBrowser(); @@ -139,7 +140,8 @@ export class DotTemplateListComponent implements OnInit, OnDestroy { * * @memberof DotTemplateListComponent */ - updateSelectedTemplates(templates: DotTemplate[]): void { + updateSelectedTemplates(event: unknown): void { + const templates = event as DotTemplate[]; this.selectedTemplates = templates; } @@ -174,7 +176,8 @@ export class DotTemplateListComponent implements OnInit, OnDestroy { * @param {DotTemplate} template * @memberof DotTemplateListComponent */ - setContextMenu(template: DotTemplate): void { + setContextMenu(event: unknown): void { + const template = event as DotTemplate; this.listing.contextMenuItems = this.setTemplateActions(template).map( ({ menuItem }: DotActionMenuItem) => menuItem ); diff --git a/core-web/apps/dotcms-ui/src/app/view/components/dot-listing-data-table/dot-listing-data-table.component.html b/core-web/apps/dotcms-ui/src/app/view/components/dot-listing-data-table/dot-listing-data-table.component.html index 73c3a5bf214b..5bfe27209ccb 100644 --- a/core-web/apps/dotcms-ui/src/app/view/components/dot-listing-data-table/dot-listing-data-table.component.html +++ b/core-web/apps/dotcms-ui/src/app/view/components/dot-listing-data-table/dot-listing-data-table.component.html @@ -1,10 +1,10 @@ diff --git a/core-web/apps/dotcms-ui/src/stories/primeng/data/Table.stories.ts b/core-web/apps/dotcms-ui/src/stories/primeng/data/Table.stories.ts index b1e8b3a413af..b5f9f602a039 100644 --- a/core-web/apps/dotcms-ui/src/stories/primeng/data/Table.stories.ts +++ b/core-web/apps/dotcms-ui/src/stories/primeng/data/Table.stories.ts @@ -133,7 +133,8 @@ const PrimaryTemplate = `