From 5c2cd95d9e8aefa81d9ecd51bb45f17abc5db31f Mon Sep 17 00:00:00 2001 From: Yvonnick Esnault Date: Mon, 19 Jun 2017 17:34:41 +0200 Subject: [PATCH] fix (ui): test check addbtn (#740) Signed-off-by: Yvonnick Esnault --- ui/src/app/shared/action/action.component.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/app/shared/action/action.component.spec.ts b/ui/src/app/shared/action/action.component.spec.ts index 554f601fd1..cdb742db47 100644 --- a/ui/src/app/shared/action/action.component.spec.ts +++ b/ui/src/app/shared/action/action.component.spec.ts @@ -182,8 +182,9 @@ describe('CDS: Action Component', () => { tick(50); expect(compiled.querySelector('button[name="deletebtn"]')).toBeFalsy(); + expect(compiled.querySelector('button[name="updatebtn"]')).toBeFalsy(); - let btn = compiled.querySelector('button[name="updatebtn"]'); + let btn = compiled.querySelector('button[name="addbtn"]'); btn.click(); expect(fixture.componentInstance.actionEvent.emit).toHaveBeenCalledWith(new ActionEvent('insert', action));