mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix test
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<mat-grid-list cols="1" rowHeight="60px">
|
||||
<mat-grid-tile>
|
||||
<div class="adf-new-task-footer">
|
||||
<button mat-button (click)="onCancel()" id="button-cancle">
|
||||
<button mat-button (click)="onCancel()" id="button-cancel">
|
||||
{{'ADF_TASK_LIST.START_TASK.FORM.ACTION.CANCEL'|translate}}
|
||||
</button>
|
||||
<button color="primary" mat-button [disabled]="!startTaskmodel.name || dateError" (click)="start()" id="button-start">
|
||||
|
@@ -302,10 +302,10 @@ describe('StartTaskComponent', () => {
|
||||
|
||||
it('should cancel start task on cancel button click', () => {
|
||||
let emitSpy = spyOn(component.cancel, 'emit');
|
||||
let cancleTaskButton = fixture.nativeElement.querySelector('#button-cancle');
|
||||
let cancelTaskButton = fixture.nativeElement.querySelector('#button-cancel');
|
||||
component.startTaskmodel.name = '';
|
||||
fixture.detectChanges();
|
||||
cancleTaskButton.click();
|
||||
cancelTaskButton.click();
|
||||
expect(emitSpy).not.toBeNull();
|
||||
expect(emitSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
Reference in New Issue
Block a user