mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-7366] fix infinite re-rendering (#3739)
This commit is contained in:
committed by
GitHub
parent
e283b50ef0
commit
b4dc7be2ad
@@ -29,6 +29,7 @@ import { ownedRuleSetMock, ruleSetsMock, ruleSetWithLinkMock } from '../../mock/
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { owningFolderIdMock } from '../../mock/node.mock';
|
||||
import { of } from 'rxjs';
|
||||
|
||||
describe('RuleListUiComponent', () => {
|
||||
let fixture: ComponentFixture<RuleListUiComponent>;
|
||||
@@ -49,7 +50,7 @@ describe('RuleListUiComponent', () => {
|
||||
});
|
||||
|
||||
it('should show "Rules from current folder" as a title if the main rule set is owned', () => {
|
||||
component.mainRuleSet = ownedRuleSetMock;
|
||||
component.mainRuleSet$ = of(ownedRuleSetMock);
|
||||
fixture.detectChanges();
|
||||
|
||||
const mainRuleSetTitleElement = debugElement.query(By.css(`[data-automation-id="main-rule-set-title"]`));
|
||||
@@ -57,7 +58,7 @@ describe('RuleListUiComponent', () => {
|
||||
});
|
||||
|
||||
it('should show "Rules from linked folder" as a title if the main rule set is linked', () => {
|
||||
component.mainRuleSet = ruleSetWithLinkMock;
|
||||
component.mainRuleSet$ = of(ruleSetWithLinkMock);
|
||||
fixture.detectChanges();
|
||||
|
||||
const mainRuleSetTitleElement = debugElement.query(By.css(`[data-automation-id="main-rule-set-title"]`));
|
||||
|
Reference in New Issue
Block a user