In jQuery, we can use the direct descendant selector >
$('#test-id > p:first')
or even children()
$('#test-id').children('p').first()
Professional Technical Solution Services for Adobe Commerce/Magento 2