From 779be0e759b9320d20792c9cb95fbbb7ebc66c69 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Thu, 14 Mar 2024 15:33:26 +0100 Subject: [PATCH] [AAE-21085] Fix e2e Search - add content selector that wrap text --- e2e/search/pages/search-bar.page.ts | 2 +- .../lib/protractor/core/pages/material/material-locators.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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: {