Upgrade to ten-band EQ with migrated curves and headphone widening

This commit is contained in:
Jonathan Sykes
2026-10-03 15:16:09 +08:00
parent 0b3e82a768
commit c8ab741d72
8 changed files with 75 additions and 23 deletions

View File

@@ -56,3 +56,12 @@ for (const layout of ['classic', 'glass-stage']) for (const width of [390, 1440]
expect(await page.locator('.app').evaluate(el => el.inert)).toBe(true);
await page.getByRole('button', { name: 'Exit Car mode' }).click(); await expect(page.locator('.car-mode')).toHaveCount(0); expect(await page.locator('.app').evaluate(el => el.inert)).toBe(false);
});
for (const layout of ['classic', 'glass-stage']) for (const width of [390, 1440]) test(`${layout} ten-band EQ at ${width}px`, async ({ page }) => {
await page.setViewportSize({ width, height: 900 }); await openClassic(page, { settings: { eq: { preset: 'custom', g: [6,2,-2,4,0] } } });
await page.evaluate(layout => { data.settings.layout = layout; applyAppearance(); EQ.open(); }, layout);
await expect(page.locator('.eq-band input')).toHaveCount(10);
expect(await page.evaluate(() => data.settings.eq.g.length)).toBe(10);
await page.getByRole('button', { name: 'Vocal clarity', exact: true }).click();
expect(await page.evaluate(() => data.settings.eq.g[7])).toBe(4);
expect(await page.locator('.eq-panel').evaluate(el => el.scrollWidth <= el.clientWidth + 1)).toBe(true);
});