Skip to content

Commit a8808e2

Browse files
committed
fix(material/radio): use correct selector for label
Some time ago we moved the `label` element further up, but the change wasn't reflected in the test harness. (cherry picked from commit a4b281d)
1 parent ea588da commit a8808e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/material/radio/testing/radio-harness.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ export class MatRadioButtonHarness extends ComponentHarness {
193193
);
194194
}
195195

196-
protected _textLabel = this.locatorFor('label');
197-
protected _clickLabel = this._textLabel;
196+
protected _textLabel = this.locatorFor('.mat-internal-form-field-label');
197+
protected _clickLabel = this.locatorFor('label');
198198
private _input = this.locatorFor('input');
199199

200200
/** Whether the radio-button is checked. */

0 commit comments

Comments
 (0)