From 9807ed217a6e9a1147921a039e8fa553017251e3 Mon Sep 17 00:00:00 2001 From: bchanot Date: Thu, 12 Nov 2026 13:42:02 +0100 Subject: [PATCH] test(app): R1 browser spec without a session path --- apps/app/e2e/shell/editor-deselect.spec.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/apps/app/e2e/shell/editor-deselect.spec.ts b/apps/app/e2e/shell/editor-deselect.spec.ts index 26361c36..52d941f4 100644 --- a/apps/app/e2e/shell/editor-deselect.spec.ts +++ b/apps/app/e2e/shell/editor-deselect.spec.ts @@ -1,5 +1,3 @@ -import { mkdir, writeFile } from 'node:fs/promises' -import { join } from 'node:path' import { fr } from '@/i18n/fr' import type { CDPSession, Locator, Page, TestInfo } from '@playwright/test' import { expect, test } from '../support/browser' @@ -44,16 +42,10 @@ const liveRegion = (page: Page) => .locator('p[aria-live="polite"]') .filter({ hasText: dict['editor.annotations.deselected'] }) -const SHOTS = - '/tmp/claude-1000/-home-bchanot-Documents-faunosteo/' + - '463d8810-0112-4b67-92e4-aa3c30af6089/scratchpad/r1-gates/shots' - -/** A screenshot attached to the report and copied for the design review. */ +/** A screenshot attached to the test report. */ async function shoot(info: TestInfo, name: string, target: Locator) { const png = await target.screenshot() await info.attach(name, { body: png, contentType: 'image/png' }) - await mkdir(SHOTS, { recursive: true }) - await writeFile(join(SHOTS, `${name}.png`), png) } const POINT = 'Pt Alpha'