Updated test.

This commit is contained in:
Michael Spalti
2022-01-27 15:08:20 -08:00
parent d91d12ed0d
commit 47581db60a

View File

@@ -381,18 +381,6 @@ describe('EditBitstreamPageComponent', () => {
it('should set isIIIF to true', () => { it('should set isIIIF to true', () => {
expect(comp.isIIIF).toBeTrue(); expect(comp.isIIIF).toBeTrue();
}); });
it('should put the \"IIIF Label\" input to be shown', () => {
expect(comp.formLayout.iiifLabel.grid.host).toContain('col');
});
it('should put the \"IIIF Toc\" input to be shown', () => {
expect(comp.formLayout.iiifToc.grid.host).toContain('col');
});
it('should put the \"IIIF width\" input to be shown', () => {
expect(comp.formLayout.iiifWidth.grid.host).toContain('col');
});
it('should put the \"IIIF Height\" input to be shown', () => {
expect(comp.formLayout.iiifHeight.grid.host).toContain('col');
});
it('should fill in the iiif label', () => { it('should fill in the iiif label', () => {
expect(rawForm.iiifLabelContainer.iiifLabel).toEqual('chapter one'); expect(rawForm.iiifLabelContainer.iiifLabel).toEqual('chapter one');
}); });
@@ -512,7 +500,7 @@ describe('EditBitstreamPageComponent', () => {
expect(comp.isIIIF).toBeFalse(); expect(comp.isIIIF).toBeFalse();
}); });
it('should put the \"IIIF Label\" input not to be shown', () => { it('should put the \"IIIF Label\" input not to be shown', () => {
expect(comp.formLayout.iiifLabel.grid.host).toContain('d-none'); expect(rawForm.iiifLabelContainer).toBeFalsy();
}); });
}); });
}); });