minor: refactor the page actions test helper some