When using dom.text('[test-id="pair-text"]') in a test it seemed that all text (from various parts of the ui) were printed out. However, dom.find('[test-id="pair-text"]').$el.text() gave me the text that I was actually interested in (the text from a single element).