[ADF-3298] Select CardView item label removed (#3555)

* placeholder removed

* test added
This commit is contained in:
Alex Bolboșenco
2018-07-03 22:04:11 +03:00
committed by Eugenio Romano
parent ef866fdbdb
commit 1bba43af8c
3 changed files with 11 additions and 2 deletions

View File

@@ -87,6 +87,15 @@ describe('CardViewSelectItemComponent', () => {
expect(selectBox).not.toBeNull();
});
it('should not have label twice', () => {
component.ngOnChanges();
component.editable = true;
fixture.detectChanges();
const label = fixture.debugElement.query(By.css('[data-automation-class="select-box"] .mat-form-field-label'));
expect(label).toBeNull();
});
it('should update property on input blur', async(() => {
spyOn(cardViewUpdateService, 'update');