Files
PaperClipAI/tests/runner-e2e/copilot-permission-card.ts
T
DottaandPaperclip 6f256f3e2a Finish Copilot production qualification on current master
Preserve the reviewed candidate source and mainline provider behavior.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-09 10:54:14 -05:00

11 lines
564 B
TypeScript

import type { Page } from "@playwright/test";
/** Answered context/discovery cards remain visible history. Match the current
* operation and its decision control; API assertions independently require one
* exact pending request and every POST is bound to its run/request/turn. */
export function copilotPendingPermissionCard(page: Page, operationOrTarget: string) {
return page.getByTestId("task-chat-runtime-request")
.filter({ visible: true, hasText: operationOrTarget })
.filter({ has: page.getByRole("button", { name: "Deny", exact: true }) });
}