@@ -48,7 +48,7 @@ export class MatEndDateHarness extends MatDatepickerInputHarnessBase {
4848export class MatDateRangeInputHarness extends DatepickerTriggerHarnessBase {
4949 static hostSelector = '.mat-date-range-input' ;
5050
51- private readonly floatingLabelSelector = '.mdc-floating-label' ;
51+ private readonly _floatingLabelSelector = '.mdc-floating-label' ;
5252
5353 /**
5454 * Gets a `HarnessPredicate` that can be used to search for a `MatDateRangeInputHarness`
@@ -94,22 +94,22 @@ export class MatDateRangeInputHarness extends DatepickerTriggerHarnessBase {
9494 /** Gets the floating label text for the range input, if it exists. */
9595 async getLabel ( ) : Promise < string | null > {
9696 // Copied from MatFormFieldControlHarnessBase since this class cannot extend two classes
97- const documentRootLocator = await this . documentRootLocatorFactory ( ) ;
97+ const documentRootLocator = this . documentRootLocatorFactory ( ) ;
9898 const labelId = await ( await this . host ( ) ) . getAttribute ( 'aria-labelledby' ) ;
9999 const hostId = await ( await this . host ( ) ) . getAttribute ( 'id' ) ;
100100
101101 if ( labelId ) {
102102 // First option, try to fetch the label using the `aria-labelledby`
103103 // attribute.
104- const labelEl = await await documentRootLocator . locatorForOptional (
105- `${ this . floatingLabelSelector } [id="${ labelId } "]` ,
104+ const labelEl = await documentRootLocator . locatorForOptional (
105+ `${ this . _floatingLabelSelector } [id="${ labelId } "]` ,
106106 ) ( ) ;
107107 return labelEl ? labelEl . text ( ) : null ;
108108 } else if ( hostId ) {
109109 // Fallback option, try to match the id of the input with the `for`
110110 // attribute of the label.
111- const labelEl = await await documentRootLocator . locatorForOptional (
112- `${ this . floatingLabelSelector } [for="${ hostId } "]` ,
111+ const labelEl = await documentRootLocator . locatorForOptional (
112+ `${ this . _floatingLabelSelector } [for="${ hostId } "]` ,
113113 ) ( ) ;
114114 return labelEl ? labelEl . text ( ) : null ;
115115 }
0 commit comments