[ACS-11153] remove the usage of ng reflect from the unit tests (#5057)

* [ACS-11153] Removed usages of ng-reflect attribute

* [ACS-11153] Added eslint rule to prevent using ng-reflect

* [ACS-11153] Fixed copilot suggestio

* [ACS-11153] Fixed copilot suggestio
This commit is contained in:
AleksanderSklorz
2026-02-20 15:41:40 +01:00
committed by GitHub
parent 1218c0fb64
commit 2d2347c1ab
4 changed files with 36 additions and 31 deletions
@@ -23,7 +23,7 @@
*/
import { BaseComponent } from './base.component';
import { Page } from '@playwright/test';
import { Locator, Page } from '@playwright/test';
export class AdfInfoDrawerComponent extends BaseComponent {
private static rootElement = 'adf-info-drawer';
@@ -38,8 +38,8 @@ export class AdfInfoDrawerComponent extends BaseComponent {
public getNameField = (labelText: string) =>
this.getChild(`[data-automation-id="library-name-properties-wrapper"] input[placeholder='${labelText}']`);
public getIdField = (labelText: string) => this.getChild(`[data-automation-id="library-id-properties-wrapper"] input[placeholder='${labelText}']`);
public getVisibilityField = (labelText: string) =>
this.getChild(`[data-automation-id="library-visibility-properties-wrapper"] [role="combobox"][ng-reflect-placeholder='${labelText}']`);
public getVisibilityField = (labelText: string): Locator =>
this.getChild(`[data-automation-id="library-visibility-properties-wrapper"]`).getByLabel(labelText);
public getDescriptionField = this.getChild('[data-automation-id="library-description-properties-wrapper"] textarea');
public propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
public commentsTab = this.page.getByRole('tab', { name: 'Comments' });