diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index feb6dfa5..915c7aed 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -44,6 +44,7 @@ - The smoke script fails when its ready time (process start to the end of the in-app smoke script, an upper bound on first paint) is over budget: 15 s locally, 45 s in CI (D102, `scripts/ready-budget.ps1`). Reports from older builds, which lack the field, are not checked. The script's messages say "smoke ready time", not "first paint". - **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. ### 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/e2e/play.e2e.tsx b/src/Ui/e2e/play.e2e.tsx index 3e49e139..dd4b46a9 100644 --- a/src/Ui/e2e/play.e2e.tsx +++ b/src/Ui/e2e/play.e2e.tsx @@ -244,8 +244,10 @@ it('a roll from any tab shows in the status bar', async () => { const lastRoll = () => bar().getByRole('status', { name: 'Last roll' }); await openTab(user, sheet, 'Play'); + // The panel is absent until the equip save lands and the sheet has an attack, so retry the whole lookup, not just the button. const actions = () => screen.getByRole('region', { name: 'Attacks and actions' }); - await user.click(await within(actions()).findByRole('button', { name: 'Roll Fixture Needle attack' })); + await waitFor(() => expect(within(actions()).getByRole('button', { name: 'Roll Fixture Needle attack' })).toBeTruthy()); + await user.click(within(actions()).getByRole('button', { name: 'Roll Fixture Needle attack' })); await waitFor(() => expect(lastRoll().textContent).toMatch(/Fixture Needle attack: \d+ \(1d20\)/)); await openTab(user, sheet, 'Spells');