Skip to content

Commit efed982

Browse files
committed
test(e2e): update pdf-annotations assertion for new display_pdf prompt text
The 91880a6 prompt rewrite changed the interact-enabled result text from 'Displaying PDF (viewUUID: ...)' to 'PDF opened. viewUUID: ...'. The e2e test was still asserting the old string.
1 parent b5bb277 commit efed982

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/pdf-annotations.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function extractViewUUID(page: Page): Promise<string> {
5050
const resultText = (await resultContent.textContent()) ?? "";
5151

5252
// Extract viewUUID from the JSON result
53-
// The text content includes: "Displaying PDF (viewUUID: <uuid>): ..."
53+
// The text content includes: "PDF opened. viewUUID: <uuid>"
5454
const match = resultText.match(/viewUUID["\s:]+([a-f0-9-]{36})/);
5555
if (!match) {
5656
throw new Error(
@@ -107,7 +107,7 @@ test.describe("PDF Server - Annotations", () => {
107107
// (interact action list lives in the tool description, not the runtime result).
108108
expect(resultText).toContain("viewUUID");
109109
expect(resultText).toContain("interactEnabled");
110-
expect(resultText).toContain("Displaying PDF");
110+
expect(resultText).toContain("PDF opened");
111111
});
112112

113113
test("interact tool is available in tool dropdown", async ({ page }) => {

0 commit comments

Comments
 (0)