Skip to content

Commit dee8d58

Browse files
committed
test(material/timepicker): updates timepicker.spec.ts
Updates timepicker test to account for recent changes to adding a default aria-label to the timepicker toggle.
1 parent fc37006 commit dee8d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/timepicker/timepicker.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1133,11 +1133,11 @@ describe('MatTimepicker', () => {
11331133
expect(toggle.getAttribute('aria-expanded')).toBe('true');
11341134
});
11351135

1136-
it('should be able to set aria-label on the button', () => {
1136+
it('should be able to set custom aria-label on the button', () => {
11371137
const fixture = TestBed.createComponent(StandaloneTimepicker);
11381138
const toggle = getToggle(fixture);
11391139
fixture.detectChanges();
1140-
expect(toggle.hasAttribute('aria-label')).toBe(false);
1140+
expect(toggle.hasAttribute('aria-label')).toBe(true);
11411141

11421142
fixture.componentInstance.toggleAriaLabel.set('Toggle the timepicker');
11431143
fixture.detectChanges();

0 commit comments

Comments
 (0)