Skip to content

Commit f3c219f

Browse files
committed
fix(material/form-field): chips test
1 parent f2350b4 commit f3c219f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/material/chips/chip-grid.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,9 @@ describe('MatChipGrid', () => {
10031003
errorTestComponent.formControl.markAsTouched();
10041004
fixture.detectChanges();
10051005

1006-
expect(containerEl.querySelector('mat-error')!.getAttribute('aria-live')).toBe('polite');
1006+
expect(
1007+
containerEl.querySelector('[aria-live]:has(mat-error)')!.getAttribute('aria-live'),
1008+
).toBe('polite');
10071009
});
10081010

10091011
it('sets the aria-describedby on the input to reference errors when in error state', fakeAsync(() => {

0 commit comments

Comments
 (0)