Skip to content

Commit 1011b41

Browse files
fix(test): accept confirm dialog in column reset test
The "Reset Columns to Defaults" test clicked the reset menu item without handling the browser confirm() dialog. The unhandled dialog auto-dismissed with cancel, so the reset never executed and the assertion on default column order failed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c2b917e commit 1011b41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/frontend/tests/library.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,8 @@ test.describe('Column Customization', () => {
20242024
expect(albumIdxBefore).toBeLessThan(artistIdxBefore);
20252025

20262026
// Open context menu and click Reset Columns to Defaults
2027+
page.on('dialog', dialog => dialog.accept());
2028+
20272029
const headerRow = page.locator('[data-testid="library-header"]');
20282030
await headerRow.click({ button: 'right' });
20292031
await page.waitForSelector('.header-context-menu', { state: 'visible', timeout: 5000 });

0 commit comments

Comments
 (0)