fix(search-filter-bar): wait for slide transition before clicking undated toggle
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m23s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Successful in 3m43s
CI / fail2ban Regex (pull_request) Successful in 44s
CI / Semgrep Security Scan (pull_request) Successful in 22s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m6s
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m23s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Successful in 3m43s
CI / fail2ban Regex (pull_request) Successful in 44s
CI / Semgrep Security Scan (pull_request) Successful in 22s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m6s
track_reactivity_loss in Svelte 5 async.js fires when a $bindable write happens while the slide transition is still being tracked asynchronously. Waiting for the toggle to be visible ensures the transition has settled. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -132,6 +132,9 @@ describe('SearchFilterBar – undated-only toggle (#668)', () => {
|
|||||||
async function openAdvanced() {
|
async function openAdvanced() {
|
||||||
const filterBtn = page.getByRole('button', { name: 'Filter', exact: true });
|
const filterBtn = page.getByRole('button', { name: 'Filter', exact: true });
|
||||||
await filterBtn.click();
|
await filterBtn.click();
|
||||||
|
// Wait for slide transition to finish before interacting with contents —
|
||||||
|
// clicking during the transition triggers track_reactivity_loss in Svelte 5 async.js
|
||||||
|
await expect.element(page.getByTestId('undated-only-toggle')).toBeVisible();
|
||||||
}
|
}
|
||||||
|
|
||||||
it('renders the "Nur undatierte" toggle in the advanced row', async () => {
|
it('renders the "Nur undatierte" toggle in the advanced row', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user