Skip to content

Commit

Permalink
fix, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
art-alexeyenko committed Oct 10, 2024
1 parent 55249de commit 02d74b9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1271,20 +1271,16 @@ describe('Placeholder Metadata: dynamic placeholder:', () => {
);

fit(
'should retain correct list of placeholders',
'should retain correct name of dynamic placeholder',
waitForAsync(async () => {
const layoutData = layoutDataForNestedDynamicPlaceholder('container-{*}');
const component = layoutData.sitecore.route;
const phKey = 'container-2';
comp.name = phKey;
comp.rendering = (component as unknown) as ComponentRendering;

fixture.detectChanges();
// double await is needed for nested/deep placeholders to render all components
await fixture.whenStable();
fixture.detectChanges();
await fixture.whenStable();
fixture.detectChanges();
const placeholder = de.query(By.css('sc-placeholder')).componentInstance;
expect(Object.keys(placeholder?.rendering?.placeholders || [])).toEqual(['container-{*}']);
})
Expand Down

0 comments on commit 02d74b9

Please sign in to comment.