test(app): R1 browser spec without a session path
This commit is contained in:
1 parent
6ed90efb3a
commit
9807ed217a
1 file changed
+1
-9
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user