diff --git a/projects/angular/src/data/datagrid/datagrid-row.spec.ts b/projects/angular/src/data/datagrid/datagrid-row.spec.ts index 3c838b4126..ed5f7dbac9 100644 --- a/projects/angular/src/data/datagrid/datagrid-row.spec.ts +++ b/projects/angular/src/data/datagrid/datagrid-row.spec.ts @@ -627,7 +627,7 @@ export default function (): void { expect(button.querySelector('cds-icon[shape^=angle-double][direction^=left]')).not.toBeNull(); })); - it('try open the hidden detail button', fakeAsync(function () { + it('check if detail button is hidden', fakeAsync(function () { context.testComponent.hiddenIndex = 0; tick(); context.detectChanges(); @@ -637,21 +637,6 @@ export default function (): void { const buttons = context.clarityElement.querySelectorAll('button.datagrid-detail-caret-button'); expect(buttons.length).toBe(1); })); - - it('hidden detail button prestate details are opened', fakeAsync(function () { - context.testComponent.hiddenIndex = 0; - tick(); - context.detectChanges(); - - context.testComponent.preState = context.testComponent.items[context.testComponent.hiddenIndex]; - tick(); - context.detectChanges(); - - const buttons = context.clarityElement.querySelectorAll('button.datagrid-detail-caret-button'); - expect(buttons.length).toBe(1); - - expect(context.clarityElement.querySelector('clr-dg-detail')).not.toBeNull(); - })); }); }); }