[ACS-5293] changed non-unique data automation ids (#3226)

* changed non-unique data automation ids

* trying a fix for multiple search locators

* trying a fix for multiple search locators
This commit is contained in:
SheenaMalhotra182 2023-05-25 23:39:12 +05:30 committed by GitHub
parent 71d97a17bf
commit 39aa789712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
[disabled]="actionRef.disabled" [disabled]="actionRef.disabled"
#matTrigger="matMenuTrigger" #matTrigger="matMenuTrigger"
> >
<span *ngIf="actionRef.title" data-automation-id="menu-item-title">{{ actionRef.title | translate }}</span> <span *ngIf="actionRef.title" data-automation-id="mat-button-menu-item-title">{{ actionRef.title | translate }}</span>
</button> </button>
</ng-container> </ng-container>
@ -25,7 +25,7 @@
[disabled]="actionRef.disabled" [disabled]="actionRef.disabled"
#matTrigger="matMenuTrigger" #matTrigger="matMenuTrigger"
> >
<span *ngIf="actionRef.title" data-automation-id="menu-item-title">{{ actionRef.title | translate }}</span> <span *ngIf="actionRef.title" data-automation-id="mat-flat-button-menu-item-title">{{ actionRef.title | translate }}</span>
</button> </button>
</ng-container> </ng-container>

View File

@ -29,7 +29,7 @@ import { BrowserActions, BrowserVisibility, TestElement } from '@alfresco/adf-te
export class SearchInput extends Component { export class SearchInput extends Component {
get searchButton() { get searchButton() {
return browser.element(by.css('.app-search-button')); return browser.element(by.css('aca-search-input .app-search-button'));
} }
searchContainer = browser.element(by.css('.app-search-container')); searchContainer = browser.element(by.css('.app-search-container'));