import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, expect, it } from 'vitest'

const manualPath = resolve(process.cwd(), 'public/manual/hypertwist-operator-manual.md')

describe('offline operator manual', () => {
  it('keeps browser-versus-desktop truth, first-session verification, and issue-reporting guidance explicit', () => {
    const manual = readFileSync(manualPath, 'utf8')

    expect(manual).toContain('## Why the website stays and where it is intentionally weaker')
    expect(manual).toContain('### What the browser does not claim')
    expect(manual).toContain('### What you do not get if you stay browser-only')
    expect(manual).toContain('## First-session verification checklist')
    expect(manual).toContain('## Issue reporting checklist')
    expect(manual).toContain('desktop-hosted native OpenXR/controller widening is `No-Go`')
    expect(manual).toContain('`Magic120Cell`')
    expect(manual).toContain('/app/downloads')
    expect(manual).toContain('/browser')
    expect(manual).toContain('/help')
  })
})
