mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed issue on focus mat calendar
This commit is contained in:
@@ -29,7 +29,7 @@ export class DatePickerCalendarPage {
|
|||||||
todayDate = TestElement.byCss(`${materialLocators.Calendar.body.today.class}`);
|
todayDate = TestElement.byCss(`${materialLocators.Calendar.body.today.class}`);
|
||||||
periodButton = $(`button[class*=${materialLocators.Calendar.button('period')}]`);
|
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<string> {
|
async getSelectedDate(): Promise<string> {
|
||||||
return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label');
|
return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label');
|
||||||
|
@@ -35,6 +35,7 @@ export const materialLocators = {
|
|||||||
},
|
},
|
||||||
Calendar: {
|
Calendar: {
|
||||||
root: 'mat-calendar',
|
root: 'mat-calendar',
|
||||||
|
focus: '.mat-focus-indicator',
|
||||||
body: {
|
body: {
|
||||||
cell: {
|
cell: {
|
||||||
root: 'mat-calendar-body-cell',
|
root: 'mat-calendar-body-cell',
|
||||||
|
Reference in New Issue
Block a user