Skip to content

Commit

Permalink
deleted TC for aria-invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
lkramarov committed Feb 17, 2020
1 parent 42574e3 commit bd510ca
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/mosaic/tags/tag-list.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,20 +1096,6 @@ describe('MatTagList', () => {
expect(document.activeElement).toBe(nativeInput, 'Expected input to remain focused.');
}));

it('should set aria-invalid if the form field is invalid', () => {
fixture.componentInstance.control = new FormControl(undefined, [Validators.required]);
fixture.detectChanges();

const input: HTMLInputElement = fixture.nativeElement.querySelector('input');

expect(input.getAttribute('aria-invalid')).toBe('true');

fixture.componentInstance.tags.first.selectViaInteraction();
fixture.detectChanges();

expect(input.getAttribute('aria-invalid')).toBe('false');
});

describe('keyboard behavior', () => {
beforeEach(() => {
tagListDebugElement = fixture.debugElement.query(By.directive(McTagList));
Expand Down

0 comments on commit bd510ca

Please sign in to comment.