Hmm.. I'd favor inspecting what's rendered on the page (similar to the above code, with `toContainText`) instead of inspecting the context directly; what's in the context isn't necessarily what the user sees.