steering.e2e.ts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. // Web e2e scenarios for both steering entry points: QueueDock strictly
  2. // transfers one queued occurrence, while the complementary composer gestures
  3. // choose Queue or Steer. The question tool supplies a deterministic pending-
  4. // steering snapshot before the step can drain.
  5. import { readFile } from 'node:fs/promises'
  6. import { fileURLToPath } from 'node:url'
  7. import { join } from 'node:path'
  8. import type { Browser, Page } from 'playwright'
  9. import { chromium } from 'playwright'
  10. import { afterAll, beforeAll, describe, expect, it, onTestFailed } from 'vitest'
  11. import { parseSessionLog } from '@deepseek-ai/dsh-llm-replay'
  12. import type { SessionEvent } from '@deepseek-ai/dsh-session'
  13. import { expandAssistantStream } from '@deepseek-ai/dsh-llm'
  14. import {
  15. assertFixtureInventory, captureExpandedTurnProcessAria, captureStableAria,
  16. compareOrRefreshGolden, fixtureUserPrompts,
  17. launchWebScaffold, recordFixture, watchConsole, webSnapshotMode, type WebScaffold,
  18. } from './scaffold.ts'
  19. import { connectFreshWorkspace, newEnglishPage, saveFailureShot } from './support.ts'
  20. const SNAPSHOT_DIR = fileURLToPath(new URL('../../../snapshots/web/steering', import.meta.url))
  21. const FIXTURE = join(SNAPSHOT_DIR, 'session.v2.jsonl')
  22. // Two goldens pin the transient Host projection and its durable handoff: the
  23. // mid-turn state renders accepted steering from the Session control queue while the
  24. // question blocks admission, then the settled state renders the same message
  25. // from user/message beside the reply that obeys it.
  26. const MID_EXPECTED = join(SNAPSHOT_DIR, 'mid-steer.expected.md')
  27. const SETTLED_EXPECTED = join(SNAPSHOT_DIR, 'settled.expected.md')
  28. const SETTLED_EXPANDED_EXPECTED = join(SNAPSHOT_DIR, 'settled-expanded.expected.md')
  29. const MODE = webSnapshotMode()
  30. // The question composer replaces the textarea, so fill → Queue row → Steer
  31. // starts only after request/context and must finish before the first replay
  32. // chunk. The compact canonical call plus 500 ms pacing gives loaded CI enough
  33. // time without stretching a long provider-authored chunk sequence.
  34. const REPLAY_PACE_MS = 500
  35. const PROMPT = 'Use the ask_user_question tool to ask me exactly one question with id "checkpoint", question "Ready to continue?", header "Checkpoint", and options labeled "Yes" and "No". After I answer, reply with one short sentence acknowledging my answer and stop.'
  36. const STEER = 'Interjection: include the word BANANA in your final reply.'
  37. // Empty-draft flush scenario: an override-only fixture. The whole-script
  38. // replacement answers both model calls of a FRESH session (no recorded
  39. // session.jsonl exists — call 0 keeps the turn open with a question-tool
  40. // call, call 1 is the reply after both steerings drain).
  41. const STEER_ALL_DIR = fileURLToPath(new URL('./expected/steer-all', import.meta.url))
  42. const STEER_ALL_FIXTURE = join(STEER_ALL_DIR, 'session.jsonl')
  43. const STEER_ALL_OVERRIDE = join(STEER_ALL_DIR, 'replay.override.json')
  44. const STEER_ALL_MID = join(STEER_ALL_DIR, 'mid-steer.expected.md')
  45. const STEER_ALL_SETTLED = join(STEER_ALL_DIR, 'settled.expected.md')
  46. const STEER_ALL_SETTLED_EXPANDED = join(STEER_ALL_DIR, 'settled-expanded.expected.md')
  47. const STEER_ONE = 'Interjection: include the word BANANA in your final reply.'
  48. const STEER_TWO = 'Interjection: include the word ORANGE in your final reply.'
  49. /** Concatenated assistant text deltas — the model-visible reply body. */
  50. function assistantText(events: SessionEvent[]): string {
  51. return events
  52. .flatMap(e => e.type === 'assistant/message' || e.type === 'assistant/attempt'
  53. ? expandAssistantStream(e.data.stream)
  54. : [])
  55. .map(({ chunk }) => chunk.type === 'text-delta' ? chunk.text : '')
  56. .join('')
  57. }
  58. /** Claimed user messages whose payload contains the exact scenario text. */
  59. function claimedMessages(events: readonly SessionEvent[], text: string): SessionEvent<'user/message'>[] {
  60. return events.filter((event): event is SessionEvent<'user/message'> =>
  61. event.type === 'user/message' && JSON.stringify(event.data.content).includes(text))
  62. }
  63. describe('web e2e: mid-turn steering lands durably and visibly', () => {
  64. let scaffold: WebScaffold
  65. let browser: Browser
  66. let page: Page
  67. let tripwire: ReturnType<typeof watchConsole>
  68. const sessionEvents: SessionEvent[] = []
  69. beforeAll(async () => {
  70. scaffold = await launchWebScaffold(MODE === 'record'
  71. ? {}
  72. : { replayFixture: FIXTURE, paceMs: REPLAY_PACE_MS, compareReplaySession: true })
  73. scaffold.ctx.on('session/event', (_session, event) => { sessionEvents.push(event) })
  74. browser = await chromium.launch()
  75. page = await newEnglishPage(browser)
  76. tripwire = watchConsole(page)
  77. await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
  78. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  79. // Fresh world: connect a Workspace so the composer scenarios start live.
  80. await connectFreshWorkspace(page, scaffold.workspaceCwd)
  81. }, 120_000)
  82. afterAll(async () => {
  83. await browser?.close()
  84. await scaffold?.close()
  85. })
  86. it('strictly steers one queued row; the interjection is logged, rendered, and obeyed', async () => {
  87. onTestFailed(() => saveFailureShot(page, 'web-e2e-steering'))
  88. if (MODE !== 'record') {
  89. // The steer lands as a durable user/message, so the inventory holds
  90. // both the opening prompt and the later same-turn steer.
  91. expect(fixtureUserPrompts(await readFile(FIXTURE, 'utf8'))).toEqual([PROMPT, STEER])
  92. }
  93. const input = page.locator('[data-composer-input]').first()
  94. await input.waitFor({ timeout: 10_000 })
  95. const settled = scaffold.whenTurnSettled(MODE === 'record' ? 180_000 : 30_000)
  96. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  97. await input.fill(PROMPT)
  98. await input.press('Enter')
  99. await expect.poll(
  100. () => sessionEvents.some(event => event.type === 'request/context'),
  101. { timeout: 10_000 },
  102. ).toBe(true)
  103. // Enter remains the Queue gesture. The row action then atomically moves
  104. // this exact occurrence into the current turn's steering outbox.
  105. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  106. await input.fill(STEER)
  107. await input.press('Enter')
  108. const queuedRow = page.getByRole('listitem').filter({ hasText: STEER })
  109. await queuedRow.waitFor({ timeout: 10_000 })
  110. const steerButton = queuedRow.getByRole('button', { name: 'Steer queued message' })
  111. await expect.poll(() => steerButton.isEnabled(), { timeout: 10_000 }).toBe(true)
  112. await steerButton.click({ timeout: 10_000 })
  113. const pendingSteering = page.locator('[data-pending-steering]').filter({ hasText: STEER })
  114. // A timeout while the Queue row remains means strict steer lost to a
  115. // closing window (`steer-unavailable`); inspect replay pacing first.
  116. await pendingSteering.waitFor({ timeout: 10_000 })
  117. // The blocked composer keeps steering pending long enough to observe the
  118. // Host-authoritative mirror before the loop admits it durably.
  119. const composer = page.locator('[data-question-key]')
  120. await composer.waitFor({ timeout: MODE === 'record' ? 120_000 : 30_000 })
  121. if (MODE !== 'record') {
  122. expect(await page.getByText(STEER, { exact: true }).count()).toBe(1)
  123. expect(await pendingSteering.count()).toBe(1)
  124. expect(await page.getByRole('button', { name: 'Edit queued message' }).count()).toBe(0)
  125. const snapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)
  126. await compareOrRefreshGolden(MID_EXPECTED, snapshot, MODE)
  127. }
  128. // Answer the composer; the tool result closes the step, the loop drains
  129. // the steer as user/message, and the steered continuation runs the
  130. // final model call.
  131. await composer.getByRole('radio', { name: 'Yes' }).click()
  132. await composer.getByRole('radio', { name: 'Yes' }).press('Enter')
  133. await settled
  134. if (MODE === 'record') {
  135. const sessionId = await settled
  136. await recordFixture(scaffold, sessionId, FIXTURE)
  137. // Fixture honesty: a recording where the live model ignored the steer
  138. // would replay as a vacuous scenario — reject it and re-record instead.
  139. const recorded = parseSessionLog(await readFile(FIXTURE, 'utf8'))
  140. expect(claimedMessages(recorded, STEER)).toHaveLength(1)
  141. expect(assistantText(recorded)).toContain('BANANA')
  142. return
  143. }
  144. // Durable: exactly one claimed user/message carrying the steering text.
  145. const steerEvents = claimedMessages(sessionEvents, STEER)
  146. expect(steerEvents).toHaveLength(1)
  147. expect(JSON.stringify(steerEvents[0])).toContain('BANANA')
  148. const turnEnds = sessionEvents.filter(e => e.type === 'turn/end')
  149. expect(turnEnds).toHaveLength(1)
  150. expect((turnEnds[0] as SessionEvent & { data: { reason: { kind: string } } }).data.reason.kind).toBe('completed')
  151. // Visible: the plain steering bubble plus the reply that obeys it
  152. // (steer text + final reply each contain the marker word).
  153. await expect.poll(() => page.getByText(STEER, { exact: true }).count(), { timeout: 15_000 }).toBe(1)
  154. expect(await pendingSteering.count()).toBe(0)
  155. await expect.poll(() => page.getByText('BANANA', { exact: false }).count(), { timeout: 10_000 }).toBeGreaterThanOrEqual(2)
  156. expect(await page.locator('[data-question-key]').count()).toBe(0)
  157. // Settled golden: steer text between the question round trip and the
  158. // obeying reply, composer takeover gone.
  159. const snapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)
  160. await compareOrRefreshGolden(SETTLED_EXPECTED, snapshot, MODE)
  161. const expanded = await captureExpandedTurnProcessAria(
  162. page,
  163. '[class*="centerCol"]',
  164. scaffold.workspaceCwd,
  165. )
  166. await compareOrRefreshGolden(SETTLED_EXPANDED_EXPECTED, expanded, MODE)
  167. expect(tripwire.pageErrors).toEqual([])
  168. expect(tripwire.warnings).toEqual([])
  169. }, 200_000)
  170. it.skipIf(MODE === 'record')('keeps the fixture inventory closed', async () => {
  171. await assertFixtureInventory(SNAPSHOT_DIR, [
  172. 'session.v2.jsonl', 'mid-steer.expected.md', 'settled.expected.md', 'settled-expanded.expected.md',
  173. ])
  174. })
  175. })
  176. describe('web e2e: composer shortcut steers directly', () => {
  177. let scaffold: WebScaffold
  178. let browser: Browser
  179. let page: Page
  180. let tripwire: ReturnType<typeof watchConsole>
  181. const sessionEvents: SessionEvent[] = []
  182. beforeAll(async () => {
  183. scaffold = await launchWebScaffold({ replayFixture: FIXTURE, paceMs: REPLAY_PACE_MS, compareReplaySession: false })
  184. scaffold.ctx.on('session/event', (_session, event) => { sessionEvents.push(event) })
  185. browser = await chromium.launch()
  186. page = await newEnglishPage(browser)
  187. tripwire = watchConsole(page)
  188. await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
  189. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  190. await connectFreshWorkspace(page, scaffold.workspaceCwd)
  191. }, 120_000)
  192. afterAll(async () => {
  193. await browser?.close()
  194. await scaffold?.close()
  195. })
  196. it.skipIf(MODE === 'record')('uses Cmd+Enter without creating a Queue row', async () => {
  197. onTestFailed(() => saveFailureShot(page, 'web-e2e-composer-steering'))
  198. expect(fixtureUserPrompts(await readFile(FIXTURE, 'utf8'))).toEqual([PROMPT, STEER])
  199. const input = page.locator('[data-composer-input]').first()
  200. await input.waitFor({ timeout: 10_000 })
  201. const settled = scaffold.whenTurnSettled(30_000)
  202. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  203. await input.fill(PROMPT)
  204. await input.press('Enter')
  205. await page.getByRole('button', { name: 'Stop generating' }).waitFor({ timeout: 10_000 })
  206. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  207. await input.fill(STEER)
  208. await input.press('Meta+Enter')
  209. await expect.poll(() => input.textContent(), { timeout: 5_000 }).toBe('')
  210. expect(await page.locator('[data-queue-dock]').count()).toBe(0)
  211. const composer = page.locator('[data-question-key]')
  212. await composer.waitFor({ timeout: 30_000 })
  213. const pendingSteering = page.locator('[data-pending-steering]').filter({ hasText: STEER })
  214. await pendingSteering.waitFor({ timeout: 10_000 })
  215. await composer.getByRole('radio', { name: 'Yes' }).click()
  216. await composer.getByRole('radio', { name: 'Yes' }).press('Enter')
  217. await settled
  218. const steerEvents = claimedMessages(sessionEvents, STEER)
  219. expect(steerEvents).toHaveLength(1)
  220. await expect.poll(() => page.getByText(STEER, { exact: true }).count(), { timeout: 15_000 }).toBe(1)
  221. expect(await pendingSteering.count()).toBe(0)
  222. await expect.poll(() => page.getByText('BANANA', { exact: false }).count(), { timeout: 10_000 })
  223. .toBeGreaterThanOrEqual(2)
  224. expect(tripwire.pageErrors).toEqual([])
  225. expect(tripwire.warnings).toEqual([])
  226. }, 90_000)
  227. })
  228. describe('web e2e: composer shortcut follows the swapped busy behavior', () => {
  229. let scaffold: WebScaffold
  230. let browser: Browser
  231. let page: Page
  232. let tripwire: ReturnType<typeof watchConsole>
  233. const sessionEvents: SessionEvent[] = []
  234. beforeAll(async () => {
  235. scaffold = await launchWebScaffold({ replayFixture: FIXTURE, paceMs: REPLAY_PACE_MS, compareReplaySession: false })
  236. scaffold.ctx.on('session/event', (_session, event) => { sessionEvents.push(event) })
  237. browser = await chromium.launch()
  238. page = await newEnglishPage(browser)
  239. tripwire = watchConsole(page)
  240. await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
  241. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  242. await connectFreshWorkspace(page, scaffold.workspaceCwd)
  243. }, 120_000)
  244. afterAll(async () => {
  245. await browser?.close()
  246. await scaffold?.close()
  247. })
  248. it.skipIf(MODE === 'record')('queues Cmd+Enter when plain Enter is configured to Steer', async () => {
  249. onTestFailed(() => saveFailureShot(page, 'web-e2e-composer-swapped-shortcut'))
  250. await page.getByRole('button', { name: 'Settings', exact: true }).click()
  251. const dialog = page.getByRole('dialog', { name: 'Settings' })
  252. await dialog.getByRole('button', { name: 'Queue' }).click()
  253. await page.getByRole('menuitem', { name: 'Steer' }).click()
  254. await dialog.getByRole('button', { name: 'Steer' }).waitFor({ timeout: 10_000 })
  255. await page.keyboard.press('Escape')
  256. const input = page.locator('[data-composer-input]').first()
  257. const settled = scaffold.whenTurnSettled(30_000)
  258. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  259. await input.fill(PROMPT)
  260. await input.press('Enter')
  261. await page.getByRole('button', { name: 'Stop generating' }).waitFor({ timeout: 10_000 })
  262. const queuedText = 'Queued by the complementary Cmd+Enter shortcut.'
  263. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  264. await input.fill(queuedText)
  265. await input.press('Meta+Enter')
  266. const queuedRow = page.locator('[data-queue-dock]').getByRole('listitem').filter({ hasText: queuedText })
  267. await queuedRow.getByText(queuedText, { exact: true }).waitFor({ timeout: 10_000 })
  268. expect(await page.locator('[data-pending-steering]').filter({ hasText: queuedText }).count()).toBe(0)
  269. expect(claimedMessages(sessionEvents, queuedText)).toHaveLength(0)
  270. // Remove the asserted Queue row, then finish the recorded question turn
  271. // so replay teardown still proves that every fixture call was consumed.
  272. await queuedRow.getByRole('button', { name: 'Remove queued message' }).click()
  273. const composer = page.locator('[data-question-key]')
  274. await composer.waitFor({ timeout: 30_000 })
  275. await composer.getByRole('radio', { name: 'Yes' }).click()
  276. await composer.getByRole('radio', { name: 'Yes' }).press('Enter')
  277. await settled
  278. expect(tripwire.pageErrors).toEqual([])
  279. expect(tripwire.warnings).toEqual([])
  280. }, 90_000)
  281. })
  282. describe('web e2e: empty-draft Cmd+Enter steers the whole queue', () => {
  283. let scaffold: WebScaffold
  284. let browser: Browser
  285. let page: Page
  286. let tripwire: ReturnType<typeof watchConsole>
  287. const sessionEvents: SessionEvent[] = []
  288. beforeAll(async () => {
  289. // The scenario boots a fresh session against the override-only fixture;
  290. // the replay.override.json sidecar replaces the derived script, so the
  291. // (deliberately absent) session.jsonl is never read.
  292. scaffold = await launchWebScaffold({
  293. replayFixture: STEER_ALL_FIXTURE,
  294. replayOverride: STEER_ALL_OVERRIDE,
  295. paceMs: REPLAY_PACE_MS,
  296. })
  297. scaffold.ctx.on('session/event', (_session, event) => { sessionEvents.push(event) })
  298. browser = await chromium.launch()
  299. page = await newEnglishPage(browser)
  300. tripwire = watchConsole(page)
  301. await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
  302. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  303. await connectFreshWorkspace(page, scaffold.workspaceCwd)
  304. await page.getByText('Standard mode', { exact: true }).waitFor({ timeout: 10_000 })
  305. }, 120_000)
  306. afterAll(async () => {
  307. await browser?.close()
  308. await scaffold?.close()
  309. })
  310. it.skipIf(MODE === 'record')('queues two messages, then flushes both with an empty-draft Cmd+Enter', async () => {
  311. onTestFailed(() => saveFailureShot(page, 'web-e2e-steer-all'))
  312. const input = page.locator('[data-composer-input]').first()
  313. await input.waitFor({ timeout: 10_000 })
  314. const settled = scaffold.whenTurnSettled(30_000)
  315. // Call 0 streams a question-tool call; the fills must land inside the
  316. // first replay window, before the question composer replaces the textarea.
  317. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  318. await input.fill(PROMPT)
  319. await input.press('Enter')
  320. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  321. await input.fill(STEER_ONE)
  322. await input.press('Enter')
  323. await page.locator('[data-composer-input][contenteditable="true"]').first().waitFor({ timeout: 10_000 })
  324. await input.fill(STEER_TWO)
  325. await input.press('Enter')
  326. const dock = page.locator('[data-queue-dock]')
  327. // Both messages queued: the two-row dock shows a collapsed count header,
  328. // and Playwright text matching skips the hidden rows — expand the list,
  329. // then assert each row's content.
  330. await dock.getByText('2 queued messages').waitFor({ timeout: 10_000 })
  331. await dock.getByRole('button').click()
  332. await dock.getByText(STEER_ONE, { exact: true }).waitFor({ timeout: 10_000 })
  333. await dock.getByText(STEER_TWO, { exact: true }).waitFor({ timeout: 10_000 })
  334. expect(await page.locator('[data-pending-steering]').count()).toBe(0)
  335. // Empty draft + Cmd+Enter: both queued rows steer in FIFO order, the dock
  336. // empties, and the pending steering renders at the conversation tail.
  337. await input.press('Meta+Enter')
  338. await expect.poll(
  339. () => page.locator('[data-pending-steering]').filter({ hasText: /BANANA|ORANGE/ }).count(),
  340. { timeout: 10_000 },
  341. ).toBe(2)
  342. expect(await page.locator('[data-queue-dock]').count()).toBe(0)
  343. // The reasoning row streams independently of the steering handoff. Wait
  344. // for the block to settle so the mid snapshot does not race its transient
  345. // visually-hidden Running label while the question keeps the turn open.
  346. await page.locator('[data-variant="think"][data-state="ok"]').first().waitFor({ timeout: 10_000 })
  347. const mid = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)
  348. await compareOrRefreshGolden(STEER_ALL_MID, mid, MODE)
  349. // Answer the question; the step closes, the loop drains both steerings
  350. // into one next-step request, and the final reply obeys both markers.
  351. const composer = page.locator('[data-question-key]')
  352. await composer.waitFor({ timeout: 30_000 })
  353. await composer.getByRole('radio', { name: 'Yes' }).click()
  354. await composer.getByRole('radio', { name: 'Yes' }).press('Enter')
  355. await settled
  356. const first = claimedMessages(sessionEvents, STEER_ONE)
  357. const second = claimedMessages(sessionEvents, STEER_TWO)
  358. expect(first).toHaveLength(1)
  359. expect(second).toHaveLength(1)
  360. expect(assistantText(sessionEvents)).toContain('BANANA')
  361. expect(assistantText(sessionEvents)).toContain('ORANGE')
  362. await expect.poll(() => page.getByText(STEER_ONE, { exact: true }).count(), { timeout: 15_000 }).toBe(1)
  363. await expect.poll(() => page.getByText(STEER_TWO, { exact: true }).count(), { timeout: 15_000 }).toBe(1)
  364. expect(await page.locator('[data-pending-steering]').count()).toBe(0)
  365. const snapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)
  366. await compareOrRefreshGolden(STEER_ALL_SETTLED, snapshot, MODE)
  367. const expanded = await captureExpandedTurnProcessAria(
  368. page,
  369. '[class*="centerCol"]',
  370. scaffold.workspaceCwd,
  371. )
  372. await compareOrRefreshGolden(STEER_ALL_SETTLED_EXPANDED, expanded, MODE)
  373. expect(tripwire.pageErrors).toEqual([])
  374. expect(tripwire.warnings).toEqual([])
  375. }, 200_000)
  376. it.skipIf(MODE === 'record')('keeps the fixture inventory closed', async () => {
  377. await assertFixtureInventory(STEER_ALL_DIR, [
  378. 'replay.override.json', 'mid-steer.expected.md',
  379. 'settled.expected.md', 'settled-expanded.expected.md',
  380. ])
  381. })
  382. })