> ids.map(id=> `#test${id}`).join(" , ")
or
> `[id^="test"]`
to get all elements that have an id that starts with test