Skip to content

Commit

Permalink
update selector in unit test to select only html element
Browse files Browse the repository at this point in the history
  • Loading branch information
yavorsk committed May 19, 2024
1 parent f74a71a commit 9afc174
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ describe('<Placeholder />', () => {
<Placeholder name={phKey} rendering={component} componentFactory={componentFactory} />
);

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;
Expand Down

0 comments on commit 9afc174

Please sign in to comment.