Skip to content

Commit

Permalink
Fixed issue on focus mat calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Jul 9, 2024
1 parent ee175aa commit 55add1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
return BrowserActions.getAttribute($(`button[class*="${materialLocators.Calendar.body.active.root}"]`), 'aria-label');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const materialLocators = {
},
Calendar: {
root: 'mat-calendar',
focus: '.mat-focus-indicator',
body: {
cell: {
root: 'mat-calendar-body-cell',
Expand Down

0 comments on commit 55add1f

Please sign in to comment.