diff --git a/e2e/search/pages/search-bar.page.ts b/e2e/search/pages/search-bar.page.ts index 6baa183331..01c7b78553 100644 --- a/e2e/search/pages/search-bar.page.ts +++ b/e2e/search/pages/search-bar.page.ts @@ -23,7 +23,7 @@ export class SearchBarPage { searchBar = $(`adf-search-control input`); searchBarExpanded = TestElement.byCss(`adf-search-control ${materialLocators.Form.field.root}[class*="${materialLocators.Focused.root}"] input`); noResultMessage = $(`p[class*='adf-search-fixed-text']`); - rowsAuthor = `${materialLocators.List.text.class} p[class*='adf-search-fixed-text']`; + rowsAuthor = `${materialLocators.List.content.class} p[class*='adf-search-fixed-text']`; completeName = `h4[class*='adf-search-fixed-text']`; highlightName = `.adf-highlight`; searchBarPage = $(`${materialLocators.List.root}[id='autocomplete-search-result-list']`); diff --git a/lib/testing/src/lib/protractor/core/pages/material/material-locators.ts b/lib/testing/src/lib/protractor/core/pages/material/material-locators.ts index 1e3c0b7867..a82497b7b6 100644 --- a/lib/testing/src/lib/protractor/core/pages/material/material-locators.ts +++ b/lib/testing/src/lib/protractor/core/pages/material/material-locators.ts @@ -257,6 +257,9 @@ export const materialLocators = { text: { class: '.mat-mdc-list-text' }, + content: { + class: '.mdc-list-item__content' + }, selectionList: 'mat-selection-list' }, Menu: {