From b8fd8e8c61697f541312ea9c03c41e92f8206cc6 Mon Sep 17 00:00:00 2001 From: DBowen33 Date: Thu, 11 Jul 2024 14:53:10 +0000 Subject: [PATCH] fix(material/paginator): fix unit tests fix unit tests fixes b/286098030 --- src/material/paginator/paginator.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/material/paginator/paginator.spec.ts b/src/material/paginator/paginator.spec.ts index 69277ca143fc..2f35fd1e7742 100644 --- a/src/material/paginator/paginator.spec.ts +++ b/src/material/paginator/paginator.spec.ts @@ -529,10 +529,10 @@ describe('MatPaginator', () => { fixture.detectChanges(); expect(select.disabled).toBe(true); - expect(getPreviousButton(fixture).hasAttribute('disabled')).toBe(false); - expect(getNextButton(fixture).hasAttribute('disabled')).toBe(false); - expect(getFirstButton(fixture).hasAttribute('disabled')).toBe(false); - expect(getLastButton(fixture).hasAttribute('disabled')).toBe(false); + expect(getPreviousButton(fixture).hasAttribute('aria-disabled')).toBe(true); + expect(getNextButton(fixture).hasAttribute('aria-disabled')).toBe(true); + expect(getFirstButton(fixture).hasAttribute('aria-disabled')).toBe(true); + expect(getLastButton(fixture).hasAttribute('aria-disabled')).toBe(true); }); it('should be able to configure the default options via a provider', () => {