The Cost Optimization view and UsageTab started calling useCan after
255d65192e, which pulls in useIsOrgAdmin -> useOrganizations -> useQuery.
Their unit tests render outside a QueryClientProvider, so every case blew
up with 'No QueryClient set'. Mock useCan directly, wired to the real
hasCapability so the role gating still exercises production logic.
The three page integration tests (guardrails-monitor, memory, workflows)
do run under a QueryClientProvider, so useCan fires an /organization/list
fetch that tripped the loose 'fetchMock not toHaveBeenCalled' assertion.
Narrow those to check only that the specific admin-only endpoint stays
unfetched, which is what the gate actually promises.
Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>