mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5551] modified changes
This commit is contained in:
@@ -114,6 +114,7 @@ describe('CardView Component - properties', () => {
|
|||||||
await viewerPage.checkInfoSideBarIsDisplayed();
|
await viewerPage.checkInfoSideBarIsDisplayed();
|
||||||
await metadataViewPage.clickOnPropertiesTab();
|
await metadataViewPage.clickOnPropertiesTab();
|
||||||
|
|
||||||
|
|
||||||
await metadataViewPage.checkMetadataGroupIsExpand('properties');
|
await metadataViewPage.checkMetadataGroupIsExpand('properties');
|
||||||
await metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
|
await metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
.adf-categories-management {
|
.adf-categories-management {
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
|
|
||||||
.adf-category-name-field {
|
.adf-category-name-field {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
-2
@@ -228,8 +228,6 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {
|
|||||||
const newCat = new Category({ id: newCatName, name: newCatName });
|
const newCat = new Category({ id: newCatName, name: newCatName });
|
||||||
this.categories.push(newCat);
|
this.categories.push(newCat);
|
||||||
this.clearCategoryNameInput();
|
this.clearCategoryNameInput();
|
||||||
this.categoryNameControl.setValue('');
|
|
||||||
this.categoryNameControl.markAsUntouched();
|
|
||||||
this._existingCategories = null;
|
this._existingCategories = null;
|
||||||
this.categoriesChange.emit(this.categories);
|
this.categoriesChange.emit(this.categories);
|
||||||
}
|
}
|
||||||
|
|||||||
-6
@@ -102,11 +102,6 @@ describe('ContentMetadataComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
|
||||||
findSaveTagsButton().click();
|
|
||||||
fixture.detectChanges();
|
|
||||||
}
|
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
const clickOnTagsSave = () => {
|
||||||
findSaveTagsButton().click();
|
findSaveTagsButton().click();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
@@ -1164,7 +1159,6 @@ describe('ContentMetadataComponent', () => {
|
|||||||
it('should render tags after loading tags in ngOnInit', () => {
|
it('should render tags after loading tags in ngOnInit', () => {
|
||||||
spyOn(tagService, 'getTagsByNodeId').and.returnValue(of(tagPaging));
|
spyOn(tagService, 'getTagsByNodeId').and.returnValue(of(tagPaging));
|
||||||
component.ngOnInit();
|
component.ngOnInit();
|
||||||
fixture.whenStable();
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const tagElements = findTagElements();
|
const tagElements = findTagElements();
|
||||||
expect(tagElements).toHaveSize(2);
|
expect(tagElements).toHaveSize(2);
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
"NO_EXISTING_TAGS": "No Existing Tags",
|
"NO_EXISTING_TAGS": "No Existing Tags",
|
||||||
"TITLE": "Create Tags",
|
"TITLE": "Create Tags",
|
||||||
"CREATE_TAG": "Create: {{tag}}",
|
"CREATE_TAG": "Create: {{tag}}",
|
||||||
|
"NAME": "Name",
|
||||||
"INPUT_PLACEHOLDER": "Add a tag to these items",
|
"INPUT_PLACEHOLDER": "Add a tag to these items",
|
||||||
"ERRORS": {
|
"ERRORS": {
|
||||||
"EXISTING_TAG": "Tag already exists",
|
"EXISTING_TAG": "Tag already exists",
|
||||||
@@ -159,6 +160,7 @@
|
|||||||
},
|
},
|
||||||
"TOOLTIPS": {
|
"TOOLTIPS": {
|
||||||
"DELETE_TAG": "Delete tag",
|
"DELETE_TAG": "Delete tag",
|
||||||
|
"HIDE_INPUT": "Hide input"
|
||||||
},
|
},
|
||||||
"TAGS_LOADING": "Tags loading",
|
"TAGS_LOADING": "Tags loading",
|
||||||
"CREATE_TAGS_SUCCESS": "Tags created successfully"
|
"CREATE_TAGS_SUCCESS": "Tags created successfully"
|
||||||
@@ -175,6 +177,7 @@
|
|||||||
"SELECT_EXISTING_CATEGORY": "Select an existing Category:",
|
"SELECT_EXISTING_CATEGORY": "Select an existing Category:",
|
||||||
"NO_EXISTING_CATEGORIES": "No existing Categories",
|
"NO_EXISTING_CATEGORIES": "No existing Categories",
|
||||||
"GENERIC_CREATE": "Create: {{name}}",
|
"GENERIC_CREATE": "Create: {{name}}",
|
||||||
|
"NAME": "Category name",
|
||||||
"LOADING": "Loading",
|
"LOADING": "Loading",
|
||||||
"HIDE_INPUT": "Hide input",
|
"HIDE_INPUT": "Hide input",
|
||||||
"NO_CATEGORIES_ADDED": "There are currently no categories added",
|
"NO_CATEGORIES_ADDED": "There are currently no categories added",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { NotificationService } from '@alfresco/adf-core';
|
|||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { MatError, MatFormFieldModule } from '@angular/material/form-field';
|
import { MatError, MatFormField, MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatInputModule } from '@angular/material/input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
@@ -300,7 +300,7 @@ describe('TagsCreatorComponent', () => {
|
|||||||
const tagNameField = fixture.debugElement.query(By.css(tagNameFieldSelector));
|
const tagNameField = fixture.debugElement.query(By.css(tagNameFieldSelector));
|
||||||
expect(tagNameField).toBeTruthy();
|
expect(tagNameField).toBeTruthy();
|
||||||
expect(tagNameField.nativeElement.hasAttribute('hidden')).toBeFalsy();
|
expect(tagNameField.nativeElement.hasAttribute('hidden')).toBeFalsy();
|
||||||
expect(tagNameField).toBeTruthy();
|
expect(tagNameField.query(By.directive(MatFormField))).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should input be autofocused', fakeAsync(() => {
|
it('should input be autofocused', fakeAsync(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user