diff --git a/components/table/src/table/table.component.ts b/components/table/src/table/table.component.ts index 052ed5b74f4..abeddc16bf2 100644 --- a/components/table/src/table/table.component.ts +++ b/components/table/src/table/table.component.ts @@ -98,7 +98,8 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'table'; { testComponent.hideOnSinglePage = true; testComponent.dataSet = [{}]; fixture.detectChanges(); - expect(table.nativeElement.querySelector('.ant-pagination')).toBeNull(); + expect(table.nativeElement.querySelector('.ant-pagination[hidden]')).not.toBeNull(); }); it('should showPagination work with nzFrontPagination and hideOnSinglePage', () => { fixture.detectChanges();