From ad75b375936f0feb492d40ce05eceec2f1e8f6d2 Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Wed, 12 Jun 2024 11:19:45 +0100 Subject: [PATCH] Fixed issue on focus mat calendar --- .../protractor/core/pages/material/date-picker-calendar.page.ts | 2 +- .../src/lib/protractor/core/pages/material/material-locators.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts b/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts index 1c5a1ac2f29..bceefabf803 100644 --- a/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/material/date-picker-calendar.page.ts @@ -29,7 +29,7 @@ export class DatePickerCalendarPage { todayDate = TestElement.byCss(`${materialLocators.Calendar.body.today.class}`); periodButton = $(`button[class*=${materialLocators.Calendar.button('period')}]`); - focusedElement = `div${materialLocators.Calendar.body.cell.content.class}${materialLocators.Focus.indicator}`; + focusedElement = `div${materialLocators.Calendar.body.cell.content.class}${materialLocators.Calendar.focus}`; async getSelectedDate(): Promise { return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label'); 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 6f38cd82183..b069b5da211 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 @@ -35,6 +35,7 @@ export const materialLocators = { }, Calendar: { root: 'mat-calendar', + focus: '.mat-focus-indicator', body: { cell: { root: 'mat-calendar-body-cell',