diff --git a/web/src/routes/admin/tuning/tuning.test.ts b/web/src/routes/admin/tuning/tuning.test.ts index 00abfa72..85283657 100644 --- a/web/src/routes/admin/tuning/tuning.test.ts +++ b/web/src/routes/admin/tuning/tuning.test.ts @@ -213,8 +213,11 @@ describe('Admin tuning page', () => { // // Queried as column headers rather than by text: the caption below also // mentions "Plays", and matching on the word finds the prose too. - expect(screen.getByRole('columnheader', { name: /Plays/ })).toHaveTextContent('(window)'); - expect(screen.getByRole('columnheader', { name: /^Skip/ })).toHaveTextContent('(last wk)'); + // Exact accessible names: /^Skip/ also matches the "Skip rate by week" + // sparkline column, and /Plays/ matched the caption prose before that. + expect(screen.getByRole('columnheader', { name: 'Plays (window)' })).toBeInTheDocument(); + expect(screen.getByRole('columnheader', { name: 'Skip (last wk)' })).toBeInTheDocument(); + expect(screen.getByRole('columnheader', { name: 'Completion (last wk)' })).toBeInTheDocument(); // The knob turn is listed under the chart AND tooltipped on each // sparkline's marker tick, hence getAllBy. expect(