From 2179965075eec50551593852730b1861f59eb5e4 Mon Sep 17 00:00:00 2001 From: Arlo Kharod <42082766+firegiant9000@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:58:14 -0600 Subject: [PATCH] a11y: use the e2e 10 s Testing Library wait (local builder step failure) --- docs/CHANGELOG.md | 1 + src/Ui/vitest.a11y.config.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 33f0139e..9e82793c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -46,6 +46,7 @@ - **Save for an older TomeStack** now offers only the version before this one (0.8); for an older TomeStack, update it first. - **Development only:** the 0.8.1 upgrade fixture was made again by 0.8.1 with a third character stored at character schema 11 (an equipped homebrew weapon carrying an item mod), and a test checks that every import path keeps it at 11 with its mod. A malformed build version stamp now stops the export target list with an error naming the stamp, instead of a bare parse error. No app change. - **Tests only:** the e2e test "a roll from any tab shows in the status bar" now waits for the Play tab's attacks panel, which appears only once the equip save lands; under CI load it had looked too early and failed. No app change. +- **Tests only:** the accessibility check (`npm run test:a11y`) now waits up to 10 s for each screen, as the UI flow tests do; at Testing Library's 1 s default, "builder, each step" failed locally before the choices step loaded. No app change. ### Migration - **Migration note (database 13, D104):** the database moves to version 13, forward-only. The first start adds triggers that make content revisions insert-only; no stored data changes. Before the upgrade the data folder is copied to `tomestack.db.v12-.bak` (for example `tomestack.db.v12-20261117T090503Z.bak`), and the newest 3 copies are kept. After this version opens a data folder, 0.8.x and older refuse to open it. To go back, restore that copy. Character, content and package formats do not change. diff --git a/src/Ui/vitest.a11y.config.ts b/src/Ui/vitest.a11y.config.ts index 056e2c1a..c6aa6973 100644 --- a/src/Ui/vitest.a11y.config.ts +++ b/src/Ui/vitest.a11y.config.ts @@ -14,6 +14,8 @@ const scheme = (colorScheme: 'light' | 'dark') => ({ name: colorScheme, include: ['a11y/**/*.a11y.tsx'], globalSetup: ['e2e/devhost.setup.ts'], + // Same 10 s Testing Library wait as e2e: each builder step waits on a real DevHost command, and 1 s was too short locally. + setupFiles: ['e2e/timeouts.setup.ts'], fileParallelism: false, testTimeout: 60_000, hookTimeout: 60_000,