$tagged_pages = $pages->find("tags.count>0");My test kept finding the Home page that didn't have anything populated in the AsmSelect field "tags".
Eventually after trying lots of alternate ways to do this search, as I'd been adding and removing fields etc, even though Home showed no items in it's AsmSelect, I added one, then deleted it, back to no items, and now the test that had appeared broken was working fine.
Might this be due to caching and if so is there a way, while developing, I can globally set PW to not cache so stuff like this can't happen? Or might it be due to me adding/removing/adding back fields and somehow confusing some internal/session/other-cached settings?
Tks to anyone with any ideas!