Skip to content

Commit

Permalink
test(material/timepicker): updates timepicker.spec.ts (#30335)
Browse files Browse the repository at this point in the history
Updates timepicker test to account for recent changes to adding
a default aria-label to the timepicker toggle.

(cherry picked from commit b5f3d42)
  • Loading branch information
essjay05 authored and Andrew Seguin committed Jan 15, 2025
1 parent ab497c4 commit 0df6e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/material/timepicker/timepicker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1133,11 +1133,11 @@ describe('MatTimepicker', () => {
expect(toggle.getAttribute('aria-expanded')).toBe('true');
});

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

fixture.componentInstance.toggleAriaLabel.set('Toggle the timepicker');
fixture.detectChanges();
Expand Down

0 comments on commit 0df6e03

Please sign in to comment.