how can I access the 2nd <li> tag's text using puppeteer?

In this particular case, this should work (at least for the first list element):

const numberOfBeds = document.querySelectorAll('.joint-list > ul > li')[1].innerText;

If you have multiple <ul> you may need to rework it with some kind of iteration or another technique, though.