mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 00:02:31 +00:00
fix(tests): match showInactive() in paired-client-window-reveal spec (#17362)
PR #17347 switched the reveal helper from window.show() to window.showInactive() and updated the thrown message, but left the unit test's regex/title matching the old show() wording — failing deterministically in CI (which builds against current main) while passing on any stale checkout that predates #17347.
This commit is contained in:
@@ -32,13 +32,13 @@ describe('assertPairedClientWindowRevealed', () => {
|
||||
).toThrow(/no BrowserWindow/)
|
||||
})
|
||||
|
||||
it('rejects a window that stays hidden after show()', () => {
|
||||
it('rejects a window that stays hidden after showInactive()', () => {
|
||||
expect(() =>
|
||||
assertPairedClientWindowRevealed({
|
||||
isVisible: false,
|
||||
wasVisible: false,
|
||||
windowCount: 2
|
||||
})
|
||||
).toThrow(/stayed hidden after show\(\)/)
|
||||
).toThrow(/stayed hidden after showInactive\(\)/)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user