settings-chrome.e2e.ts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. // Web e2e scenarios: the settings surface — the modal shell (trigger, nav,
  2. // section switching, both close paths), the Appearance preference row (the
  3. // real theme gesture — click 深色 and the whole cascade runs: ThemeService preference -> Host settings
  4. // -> theme/change -> ui-layout's presenter -> body attribute -> alias token +
  5. // browser theme-color metadata)
  6. // the Language row and busy-state Enter preference (both Host-backed), plus
  7. // Permission as the persisted default for subsequently created sessions.
  8. // Zero model calls: everything is pure client + persistence state on a blank
  9. // frame, so there is no fixture and a stray stream would fail loud on the
  10. // open llm seam.
  11. import { readFile } from 'node:fs/promises'
  12. import { fileURLToPath } from 'node:url'
  13. import type { Browser, Page } from 'playwright'
  14. import { chromium } from 'playwright'
  15. import { afterAll, beforeAll, describe, expect, it, onTestFailed } from 'vitest'
  16. import { join } from 'node:path'
  17. import { SessionId } from '@deepseek-ai/dsh-session'
  18. import {
  19. acknowledgeReloadConnectionLoss, assertFixtureInventory, captureStableAria, compareOrRefreshGolden,
  20. launchWebScaffold, watchConsole, webSnapshotMode, type WebScaffold,
  21. } from './scaffold.ts'
  22. import { ZH_BROWSER_LOCALE, saveFailureShot } from './support.ts'
  23. const SNAPSHOT_DIR = fileURLToPath(new URL('./snapshots/settings-chrome', import.meta.url))
  24. const DIALOG_EXPECTED = join(SNAPSHOT_DIR, 'dialog.expected.md')
  25. const MODE = webSnapshotMode()
  26. describe('web e2e: settings modal and General preferences', () => {
  27. let scaffold: WebScaffold
  28. let browser: Browser
  29. let page: Page
  30. let tripwire: ReturnType<typeof watchConsole>
  31. beforeAll(async () => {
  32. scaffold = await launchWebScaffold({})
  33. browser = await chromium.launch()
  34. // Chinese browser: the shared page asserts the localized settings surface
  35. // the client derives from it (the English default has its own spec below).
  36. page = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: ZH_BROWSER_LOCALE })
  37. tripwire = watchConsole(page)
  38. await page.goto(scaffold.baseUrl, { waitUntil: 'load' })
  39. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  40. }, 120_000)
  41. afterAll(async () => {
  42. await browser?.close()
  43. await scaffold?.close()
  44. })
  45. it('opens the settings dialog, switches sections, and closes by every path', async () => {
  46. onTestFailed(() => saveFailureShot(page, 'web-e2e-settings-shell'))
  47. const trigger = page.getByRole('button', { name: '设置', exact: true })
  48. expect(await trigger.getAttribute('aria-haspopup')).toBe('dialog')
  49. expect(await trigger.getAttribute('aria-expanded')).toBe('false')
  50. await trigger.click()
  51. const dialog = page.getByRole('dialog', { name: '设置' })
  52. await dialog.waitFor({ timeout: 10_000 })
  53. expect(await trigger.getAttribute('aria-expanded')).toBe('true')
  54. // General is active by default; Permission, Language and Appearance are functional.
  55. expect(await dialog.getByRole('button', { name: '通用设置' }).getAttribute('aria-current')).toBe('true')
  56. await dialog.getByRole('button', { name: 'Workspace Write' }).waitFor({ timeout: 10_000 })
  57. await expect.poll(() => dialog.getByText('语言', { exact: true }).count(), { timeout: 5_000 }).toBe(1)
  58. await expect.poll(() => dialog.getByText('外观', { exact: true }).count(), { timeout: 5_000 }).toBe(1)
  59. const openDocument = dialog.getByRole('button', { name: '打开配置文件' })
  60. await openDocument.waitFor({ timeout: 10_000 })
  61. let openRequests = 0
  62. await page.route('**/api/settings.openDocument', async (route) => {
  63. const envelope = route.request().postDataJSON() as {
  64. rpcId: string
  65. payload: Record<string, never>
  66. }
  67. expect(envelope.payload).toEqual({})
  68. openRequests += 1
  69. await route.fulfill({
  70. status: 200,
  71. contentType: 'application/json',
  72. body: JSON.stringify({
  73. type: 'server-response',
  74. rpcId: envelope.rpcId,
  75. result: { ok: true, value: { opened: true } },
  76. }),
  77. })
  78. })
  79. await openDocument.click()
  80. await expect.poll(() => openRequests, { timeout: 5_000 }).toBe(1)
  81. await expect.poll(() => openDocument.isEnabled(), { timeout: 5_000 }).toBe(true)
  82. await page.unroute('**/api/settings.openDocument')
  83. // Golden of the freshly opened dialog (default zh, General active).
  84. const snapshot = await captureStableAria(page, '[role="dialog"]', scaffold.workspaceCwd)
  85. await compareOrRefreshGolden(DIALOG_EXPECTED, snapshot, MODE)
  86. // Section switch: aria-current moves (the Models page itself has its own scenario file).
  87. await dialog.getByRole('button', { name: '模型' }).click()
  88. await expect.poll(() => dialog.getByRole('button', { name: '模型' }).getAttribute('aria-current'), { timeout: 5_000 }).toBe('true')
  89. expect(await dialog.getByRole('button', { name: '通用设置' }).getAttribute('aria-current')).toBeNull()
  90. // Close path 1: Escape.
  91. await page.keyboard.press('Escape')
  92. await expect.poll(() => page.getByRole('dialog', { name: '设置' }).count(), { timeout: 5_000 }).toBe(0)
  93. expect(await trigger.getAttribute('aria-expanded')).toBe('false')
  94. // Close path 2: the header close button (focus lands there on open).
  95. await trigger.click()
  96. await page.getByRole('dialog', { name: '设置' }).getByRole('button', { name: '关闭' }).click()
  97. await expect.poll(() => page.getByRole('dialog', { name: '设置' }).count(), { timeout: 5_000 }).toBe(0)
  98. expect(tripwire.pageErrors).toEqual([])
  99. }, 60_000)
  100. it('stores Permission as the default for future sessions without changing an existing session', async () => {
  101. onTestFailed(() => saveFailureShot(page, 'web-e2e-settings-permission'))
  102. const existing = scaffold.ctx.sessions.create(SessionId('settings-permission-before'))
  103. expect(existing.events.find(event => event.type === 'permission/preset')?.data)
  104. .toEqual({ preset: 'workspace-write' })
  105. await page.getByRole('button', { name: '设置', exact: true }).click()
  106. const dialog = page.getByRole('dialog', { name: '设置' })
  107. await dialog.waitFor({ timeout: 10_000 })
  108. const selector = dialog.getByRole('button', { name: 'Workspace Write' })
  109. await selector.waitFor({ timeout: 10_000 })
  110. await expect.poll(() => selector.isEnabled(), { timeout: 5_000 }).toBe(true)
  111. await selector.click()
  112. await page.getByRole('menuitem', { name: 'Read Only' }).click()
  113. await dialog.getByRole('button', { name: 'Read Only' }).waitFor({ timeout: 10_000 })
  114. const document = await readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8')
  115. expect(document).toContain('permission:')
  116. expect(document).toContain('defaultPreset: read-only')
  117. expect(existing.events.find(event => event.type === 'permission/preset')?.data)
  118. .toEqual({ preset: 'workspace-write' })
  119. const created = scaffold.ctx.sessions.create(SessionId('settings-permission-after'))
  120. expect(created.events.map(event => [event.type, event.data])).toEqual([
  121. ['permission/preset', { preset: 'read-only' }],
  122. ['sandbox/mode', { mode: 'read-only' }],
  123. ['approval/policy', { policy: 'ask' }],
  124. ])
  125. await dialog.getByRole('button', { name: 'Read Only' }).click()
  126. await page.getByRole('menuitem', { name: 'Full access' }).click()
  127. const confirmation = page.getByRole('dialog', { name: '确认启用 Full access?' })
  128. const enable = confirmation.getByRole('button', { name: '启用 Full access' })
  129. expect(await enable.isDisabled()).toBe(true)
  130. await confirmation.getByRole('checkbox').click()
  131. await enable.click()
  132. await dialog.getByRole('button', { name: 'Full access' }).waitFor({ timeout: 10_000 })
  133. const confirmedDocument = await readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8')
  134. expect(confirmedDocument).toContain('defaultPreset: danger-full-access')
  135. const confirmed = scaffold.ctx.sessions.create(SessionId('settings-permission-confirmed'))
  136. expect(confirmed.events.map(event => [event.type, event.data])).toEqual([
  137. ['permission/preset', { preset: 'danger-full-access' }],
  138. ['sandbox/mode', { mode: 'danger-full-access' }],
  139. ['approval/policy', { policy: 'never' }],
  140. ])
  141. await page.keyboard.press('Escape')
  142. expect(tripwire.pageErrors).toEqual([])
  143. }, 60_000)
  144. it('flips the theme through the Appearance cubes and persists across reload and a distinct port', async () => {
  145. onTestFailed(() => saveFailureShot(page, 'web-e2e-settings-appearance'))
  146. interface ThemeState {
  147. attr: boolean
  148. background: string
  149. /** Pre-migration localStorage key; the Host-backed world never writes it. */
  150. legacy: string | null
  151. themeColor: string | null
  152. themeColorCount: number
  153. token: string
  154. }
  155. const readState = async (target: Page = page): Promise<ThemeState> => await target.evaluate(() => {
  156. const metas = document.head.querySelectorAll<HTMLMetaElement>('meta[name="theme-color"]')
  157. const computed = getComputedStyle(document.body)
  158. return {
  159. attr: document.body.hasAttribute('data-ds-dark-theme'),
  160. background: computed.backgroundColor,
  161. legacy: localStorage.getItem('dsh.theme'),
  162. themeColor: metas[0]?.content ?? null,
  163. themeColorCount: metas.length,
  164. token: computed.getPropertyValue('--dsw-alias-bg-base').trim(),
  165. }
  166. })
  167. const expectThemeColorSynchronized = (state: ThemeState): void => {
  168. expect(state.themeColorCount).toBe(1)
  169. expect(state.background).not.toBe('rgba(0, 0, 0, 0)')
  170. expect(state.themeColor).toBe(state.background)
  171. }
  172. // Pin the OS scheme to light so the default `system` preference resolves
  173. // light and the dark flip below is unambiguously the gesture's doing.
  174. await page.emulateMedia({ colorScheme: 'light' })
  175. const light = await readState()
  176. expect(light.attr).toBe(false)
  177. expectThemeColorSynchronized(light)
  178. await page.getByRole('button', { name: '设置', exact: true }).click()
  179. const dialog = page.getByRole('dialog', { name: '设置' })
  180. await dialog.waitFor({ timeout: 10_000 })
  181. const darkCube = dialog.getByRole('button', { name: '深色' })
  182. expect(await darkCube.getAttribute('aria-pressed')).toBe('false')
  183. await darkCube.click()
  184. // The full cascade: pressed state, Host-backed preference, body attribute,
  185. // alias token flip — all from one real user gesture.
  186. await expect.poll(() => darkCube.getAttribute('aria-pressed'), { timeout: 5_000 }).toBe('true')
  187. const dark = await readState()
  188. expect(dark.attr).toBe(true)
  189. expect(dark.legacy).toBeNull()
  190. expect(dark.token).not.toBe(light.token)
  191. expectThemeColorSynchronized(dark)
  192. await expect.poll(async () => readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8'), { timeout: 5_000 })
  193. .toMatch(/ui-theme:\n\s+preference: dark/)
  194. await page.keyboard.press('Escape')
  195. // Reload: the preference survives the background Host read + presenter update.
  196. const warningStart = tripwire.warnings.length
  197. await page.reload({ waitUntil: 'load' })
  198. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  199. acknowledgeReloadConnectionLoss(tripwire, warningStart)
  200. await page.emulateMedia({ colorScheme: 'light' })
  201. await expect.poll(async () => (await readState()).attr, { timeout: 5_000 }).toBe(true)
  202. const reloaded = await readState()
  203. expect(reloaded.legacy).toBeNull()
  204. expectThemeColorSynchronized(reloaded)
  205. // A second live Host binds another ephemeral port but shares the same
  206. // user-settings home. Its fresh origin has no theme localStorage and still
  207. // converges to dark before the settings dialog opens.
  208. const second = await launchWebScaffold({ harnessHome: scaffold.harnessHome })
  209. const secondPage = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: ZH_BROWSER_LOCALE })
  210. const secondTripwire = watchConsole(secondPage)
  211. try {
  212. expect(second.baseUrl).not.toBe(scaffold.baseUrl)
  213. await secondPage.emulateMedia({ colorScheme: 'light' })
  214. await secondPage.goto(second.baseUrl, { waitUntil: 'load' })
  215. await secondPage.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  216. await expect.poll(async () => (await readState(secondPage)).attr, { timeout: 5_000 }).toBe(true)
  217. const secondState = await readState(secondPage)
  218. expect(secondState.legacy).toBeNull()
  219. expectThemeColorSynchronized(secondState)
  220. expect(secondTripwire.pageErrors).toEqual([])
  221. expect(secondTripwire.warnings).toEqual([])
  222. } finally {
  223. await secondPage.close()
  224. await second.close()
  225. }
  226. // `system` follows the emulated OS scheme (dark stays dark, light clears).
  227. await page.getByRole('button', { name: '设置', exact: true }).click()
  228. const systemCube = page.getByRole('dialog', { name: '设置' }).getByRole('button', { name: '跟随系统' })
  229. await systemCube.click()
  230. await expect.poll(() => systemCube.getAttribute('aria-pressed'), { timeout: 5_000 }).toBe('true')
  231. await expect.poll(async () => (await readState()).attr, { timeout: 5_000 }).toBe(false)
  232. expectThemeColorSynchronized(await readState())
  233. await page.emulateMedia({ colorScheme: 'dark' })
  234. await expect.poll(async () => (await readState()).attr, { timeout: 5_000 }).toBe(true)
  235. expectThemeColorSynchronized(await readState())
  236. // Restore for the specs that follow: light preference beats the emulated
  237. // dark OS scheme, leaving the shared page in the light default.
  238. await page.getByRole('dialog', { name: '设置' }).getByRole('button', { name: '浅色' }).click()
  239. await expect.poll(async () => (await readState()).attr, { timeout: 5_000 }).toBe(false)
  240. expectThemeColorSynchronized(await readState())
  241. await page.keyboard.press('Escape')
  242. expect(tripwire.pageErrors).toEqual([])
  243. }, 90_000)
  244. it('persists the busy-state Enter behavior across reload and a distinct port', async () => {
  245. onTestFailed(() => saveFailureShot(page, 'web-e2e-settings-enter-behavior'))
  246. await page.getByRole('button', { name: '设置', exact: true }).click()
  247. const dialog = page.getByRole('dialog', { name: '设置' })
  248. await dialog.waitFor({ timeout: 10_000 })
  249. await dialog.getByRole('button', { name: '排队发送' }).click()
  250. await page.getByRole('menuitem', { name: '插话发送' }).click()
  251. await dialog.getByRole('button', { name: '插话发送' }).waitFor({ timeout: 10_000 })
  252. expect(await page.evaluate(() => localStorage.getItem('dsh.conversation.busyEnter'))).toBeNull()
  253. await expect.poll(async () => readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8'), { timeout: 5_000 })
  254. .toMatch(/ui-conversation:\n\s+busyEnter: steer/)
  255. await page.keyboard.press('Escape')
  256. const warningStart = tripwire.warnings.length
  257. await page.reload({ waitUntil: 'load' })
  258. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  259. acknowledgeReloadConnectionLoss(tripwire, warningStart)
  260. await page.getByRole('button', { name: '设置', exact: true }).click()
  261. const reloaded = page.getByRole('dialog', { name: '设置' })
  262. await reloaded.getByRole('button', { name: '插话发送' }).waitFor({ timeout: 10_000 })
  263. const second = await launchWebScaffold({ harnessHome: scaffold.harnessHome })
  264. const secondPage = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: ZH_BROWSER_LOCALE })
  265. const secondTripwire = watchConsole(secondPage)
  266. try {
  267. expect(second.baseUrl).not.toBe(scaffold.baseUrl)
  268. await secondPage.goto(second.baseUrl, { waitUntil: 'load' })
  269. await secondPage.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  270. await secondPage.getByRole('button', { name: '设置', exact: true }).click()
  271. await secondPage.getByRole('dialog', { name: '设置' })
  272. .getByRole('button', { name: '插话发送' }).waitFor({ timeout: 10_000 })
  273. expect(await secondPage.evaluate(() => localStorage.getItem('dsh.conversation.busyEnter'))).toBeNull()
  274. expect(secondTripwire.pageErrors).toEqual([])
  275. expect(secondTripwire.warnings).toEqual([])
  276. } finally {
  277. await secondPage.close()
  278. await second.close()
  279. }
  280. await reloaded.getByRole('button', { name: '插话发送' }).click()
  281. await page.getByRole('menuitem', { name: '排队发送' }).click()
  282. await reloaded.getByRole('button', { name: '排队发送' }).waitFor({ timeout: 10_000 })
  283. expect(await page.evaluate(() => localStorage.getItem('dsh.conversation.busyEnter'))).toBeNull()
  284. await expect.poll(async () => readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8'), { timeout: 5_000 })
  285. .toMatch(/ui-conversation:\n\s+busyEnter: queue/)
  286. await page.keyboard.press('Escape')
  287. expect(tripwire.pageErrors).toEqual([])
  288. }, 90_000)
  289. it('persists the settings language across reload and a distinct port', async () => {
  290. onTestFailed(() => saveFailureShot(page, 'web-e2e-settings-language'))
  291. await page.getByRole('button', { name: '设置', exact: true }).click()
  292. const zhDialog = page.getByRole('dialog', { name: '设置' })
  293. await zhDialog.waitFor({ timeout: 10_000 })
  294. // The Language selector pill shows the active locale's own name.
  295. const selector = zhDialog.getByRole('button', { name: '中文' })
  296. expect(await selector.getAttribute('aria-haspopup')).toBe('menu')
  297. await selector.click()
  298. await page.getByRole('menuitem', { name: 'English' }).click()
  299. // The settings-owned copy re-registers localized: dialog title, nav,
  300. // Appearance labels. (Only the settings namespaces are localized —
  301. // the rest of the app's copy is intentionally out of this row's scope.)
  302. const enDialog = page.getByRole('dialog', { name: 'Settings' })
  303. await enDialog.waitFor({ timeout: 10_000 })
  304. expect(await enDialog.getByRole('button', { name: 'General' }).getAttribute('aria-current')).toBe('true')
  305. await expect.poll(() => enDialog.getByText('Appearance', { exact: true }).count(), { timeout: 5_000 }).toBe(1)
  306. expect(await page.evaluate(() => localStorage.getItem('dsh.locale'))).toBeNull()
  307. await expect.poll(async () => readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8'), { timeout: 5_000 })
  308. .toMatch(/locale:\n\s+preference: en/)
  309. // Reload keeps English; then restore zh so shared page state (and the
  310. // other specs' 设置-anchored selectors + goldens) see the default again.
  311. const warningStart = tripwire.warnings.length
  312. await page.reload({ waitUntil: 'load' })
  313. await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  314. acknowledgeReloadConnectionLoss(tripwire, warningStart)
  315. const enTrigger = page.getByRole('button', { name: 'Settings' })
  316. await enTrigger.waitFor({ timeout: 10_000 })
  317. // A Chinese browser on another port still receives the explicit English
  318. // preference from the shared Host settings document.
  319. const second = await launchWebScaffold({ harnessHome: scaffold.harnessHome })
  320. const secondPage = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: ZH_BROWSER_LOCALE })
  321. const secondTripwire = watchConsole(secondPage)
  322. try {
  323. expect(second.baseUrl).not.toBe(scaffold.baseUrl)
  324. await secondPage.goto(second.baseUrl, { waitUntil: 'load' })
  325. await secondPage.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  326. await secondPage.getByRole('button', { name: 'Settings', exact: true }).click()
  327. await secondPage.getByRole('dialog', { name: 'Settings' })
  328. .getByRole('button', { name: 'English' }).waitFor({ timeout: 10_000 })
  329. expect(await secondPage.evaluate(() => localStorage.getItem('dsh.locale'))).toBeNull()
  330. expect(secondTripwire.pageErrors).toEqual([])
  331. expect(secondTripwire.warnings).toEqual([])
  332. } finally {
  333. await secondPage.close()
  334. await second.close()
  335. }
  336. await enTrigger.click()
  337. await page.getByRole('dialog', { name: 'Settings' }).getByRole('button', { name: 'English' }).click()
  338. await page.getByRole('menuitem', { name: '中文' }).click()
  339. await page.getByRole('dialog', { name: '设置' }).waitFor({ timeout: 10_000 })
  340. expect(await page.evaluate(() => localStorage.getItem('dsh.locale'))).toBeNull()
  341. await expect.poll(async () => readFile(join(scaffold.harnessHome, 'settings.yaml'), 'utf8'), { timeout: 5_000 })
  342. .toMatch(/locale:\n\s+preference: zh/)
  343. await page.keyboard.press('Escape')
  344. expect(tripwire.pageErrors).toEqual([])
  345. }, 90_000)
  346. it('opens an English browser in English without any stored preference', async () => {
  347. // A fresh Host home has no locale preference, so its surface follows the
  348. // browser rather than the product fallback.
  349. const fresh = await launchWebScaffold({})
  350. const enPage = await browser.newPage({ viewport: { width: 1680, height: 1000 }, locale: 'en-US' })
  351. const enTripwire = watchConsole(enPage)
  352. onTestFailed(() => saveFailureShot(enPage, 'web-e2e-settings-browser-language'))
  353. try {
  354. await enPage.goto(fresh.baseUrl, { waitUntil: 'load' })
  355. await enPage.waitForSelector('[class*="frame"]', { timeout: 30_000 })
  356. expect(await enPage.evaluate(() => localStorage.getItem('dsh.locale'))).toBeNull()
  357. await enPage.getByRole('button', { name: 'Settings', exact: true }).click()
  358. const dialog = enPage.getByRole('dialog', { name: 'Settings' })
  359. await dialog.waitFor({ timeout: 10_000 })
  360. await dialog.getByRole('button', { name: 'English' }).waitFor({ timeout: 10_000 })
  361. // This page has no closing inventory spec to sweep its console, so the
  362. // scenario clears both tripwire channels itself.
  363. expect(enTripwire.pageErrors).toEqual([])
  364. expect(enTripwire.warnings).toEqual([])
  365. } finally {
  366. await enPage.close()
  367. await fresh.close()
  368. }
  369. }, 90_000)
  370. it.skipIf(MODE === 'record')('keeps the fixture inventory closed', async () => {
  371. expect(tripwire.warnings).toEqual([])
  372. await assertFixtureInventory(SNAPSHOT_DIR, ['dialog.expected.md'])
  373. })
  374. })