Upgrade to ten-band EQ with migrated curves and headphone widening
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user