diff --git a/tests/characters.spec.js b/tests/characters.spec.js index 3df2e30..1750ace 100644 --- a/tests/characters.spec.js +++ b/tests/characters.spec.js @@ -124,6 +124,8 @@ test('current-version image pairs marked inconsistent show a review warning', as }); test('character appearance forms stay in one record and switch the detail view', async ({ page }) => { + // Switching the form saves the record, so stand in for the API instead of writing to the real library. + await mockRecord(page, { id: 'c-forms', book: 'Smoke Book', name: 'Zerwas', tags: '', sheet: {} }); await page.route('**/api/book-profile*', route => route.fulfill({ json: { profile: {} } })); await page.goto('/', { waitUntil: 'domcontentloaded' }); await page.waitForSelector('#lib-chars-list', { state: 'attached', timeout: 15_000 });