Skip to content

Commit

Permalink
fix (ui): test check addbtn (#740)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored and sguiheux committed Jun 19, 2017
1 parent 9297c73 commit 5c2cd95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/shared/action/action.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5c2cd95

Please sign in to comment.