mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 11:01:16 +01:00
Reviewed partition of the current-master Copilot integration. Complete v30 live qualification is retained; current v31 recovery compatibility, CI and review are tracked explicitly. Co-Authored-By: Paperclip <noreply@paperclip.ing>
11 lines
564 B
TypeScript
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 }) });
|
|
}
|