Skip to content

Commit 12591ca

Browse files
committed
fix(material/paginator): change tabindex expect in test
1 parent 6b8e6fc commit 12591ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/material/paginator/paginator.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -568,13 +568,13 @@ describe('MatPaginator', () => {
568568

569569
expect(select.disabled).toBe(false);
570570
expect(getPreviousButton(fixture).hasAttribute('disabled')).toBe(false);
571-
expect(getPreviousButton(fixture).hasAttribute('tabindex')).toBe(false);
571+
expect(getPreviousButton(fixture).getAttribute('tabindex')).toBe('0');
572572
expect(getNextButton(fixture).hasAttribute('disabled')).toBe(false);
573-
expect(getNextButton(fixture).hasAttribute('tabindex')).toBe(false);
573+
expect(getNextButton(fixture).getAttribute('tabindex')).toBe('0');
574574
expect(getFirstButton(fixture).hasAttribute('disabled')).toBe(false);
575-
expect(getFirstButton(fixture).hasAttribute('tabindex')).toBe(false);
575+
expect(getFirstButton(fixture).getAttribute('tabindex')).toBe('0');
576576
expect(getLastButton(fixture).hasAttribute('disabled')).toBe(false);
577-
expect(getLastButton(fixture).hasAttribute('tabindex')).toBe(false);
577+
expect(getLastButton(fixture).getAttribute('tabindex')).toBe('0');
578578

579579
fixture.componentInstance.disabled = true;
580580
fixture.changeDetectorRef.markForCheck();

0 commit comments

Comments
 (0)