mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 00:02:05 +00:00
test(e2e): take the sidebar measured-row baseline with reduced motion (#23588)
The fixture's collapse starts a row-removal slide; on hidden Linux windows the animation clock can stall, so the 'settled' baseline read LaunchStack 94px low (104 vs the resting 10). Emulate reduced motion, as the active-delete scroll spec already does, so the baseline is the resting layout. Linear: STA-8021
This commit is contained in:
@@ -71,6 +71,8 @@ test('keeps a collapsed group visible when an idle card below it grows', async (
|
||||
orcaPage,
|
||||
registerPostElectronShutdownCleanup
|
||||
}, testInfo) => {
|
||||
// Why: the fixture's collapse slides rows in from their old position; a hidden window can freeze that mid-flight baseline.
|
||||
await orcaPage.emulateMedia({ reducedMotion: 'reduce' })
|
||||
await waitForSessionReady(orcaPage)
|
||||
await orcaPage.setViewportSize({ width: 1200, height: 900 })
|
||||
const root = realpathSync(mkdtempSync(path.join(os.tmpdir(), 'orca-sidebar-measured-row-')))
|
||||
|
||||
Reference in New Issue
Block a user