import * as crypto from 'node:crypto'; import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { create } from '@bufbuild/protobuf'; import { PlanSchema, Schedule_Clock } from '../../gen/ts/v1/config_pb'; import { test, expect } from '../harness/fixtures'; import { backrestClient, seedInstance, seedRepo } from '../harness/seed'; /** * Real-time backup progress in the operations Tree View. * * Seeds an instance/repo/plan whose backup source is incompressible * (crypto-random) data, rate-limited via a restic backup flag so the backup * runs long enough (~10-15s) to observe live progress. The test stays on the * plan view's DEFAULT tab — the Tree View — and, without ever reloading the * page, watches the backup stream in: * * 1. a tree leaf ("Backup