From 9afc174fad809dc7cffffb4adaf9cd755c049df2 Mon Sep 17 00:00:00 2001 From: yavorsk Date: Sun, 19 May 2024 15:43:27 +0300 Subject: [PATCH] update selector in unit test to select only html element --- packages/sitecore-jss-react/src/components/Placeholder.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sitecore-jss-react/src/components/Placeholder.test.tsx b/packages/sitecore-jss-react/src/components/Placeholder.test.tsx index ff1702616b..61f7be2ed5 100644 --- a/packages/sitecore-jss-react/src/components/Placeholder.test.tsx +++ b/packages/sitecore-jss-react/src/components/Placeholder.test.tsx @@ -462,7 +462,7 @@ describe('', () => { ); - const eeChrome = renderedComponent.find({ chrometype: 'placeholder', kind: 'open', id: phKey }); + const eeChrome = renderedComponent.find(`code#${phKey}[chrometype="placeholder"][kind="open"]`); expect(eeChrome.length).to.eq(1); const keyAttribute = eeChrome.get(0).key; expect(keyAttribute).to.not.be.undefined;