Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<UTC time>.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.
Expand Down
4 changes: 3 additions & 1 deletion src/Ui/e2e/play.e2e.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading