In case someone else comes across this and uses tea, this is what I used based on documents for should / enable
it('Should grab all li elements using double $$', () => { const liEl = $$('ul li'); const fruitList = ['Bananas', 'Apples', 'Oranges', 'Pears']; liEl.forEach((el) => { expect(fruitList).to.include(el.getText()); }); });
I use webdriver.io, so you can ignore the part where I take the element, just included for completeness.
source share