(page: Page, name: string, enabled: boolean)
| 160 | /** Assert a pager button's enabled state — the affordance an operator reads to |
| 161 | * know whether a page exists in that direction. */ |
| 162 | const expectEnabled = async (page: Page, name: string, enabled: boolean): Promise<void> => { |
| 163 | expect( |
| 164 | await page.getByRole("button", { name }).isEnabled(), |
| 165 | `${name} is ${enabled ? "offered" : "not offered"}`, |
| 166 | ).toBe(enabled); |
| 167 | }; |
no outgoing calls
no test coverage detected