Files
orca/tests/e2e/helpers/paired-client-window-reveal.unit.test.ts
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

45 lines
1.2 KiB
TypeScript

import { describe, expect, it } from 'vitest'
import { assertPairedClientWindowRevealed } from './paired-client-window-reveal'
describe('assertPairedClientWindowRevealed', () => {
it('accepts a window that the reveal made visible', () => {
expect(() =>
assertPairedClientWindowRevealed({
isVisible: true,
wasVisible: false,
windowCount: 1
})
).not.toThrow()
})
it('accepts a window that was already visible', () => {
expect(() =>
assertPairedClientWindowRevealed({
isVisible: true,
wasVisible: true,
windowCount: 1
})
).not.toThrow()
})
it('rejects a client with no window instead of letting the spec time out on a click', () => {
expect(() =>
assertPairedClientWindowRevealed({
isVisible: false,
wasVisible: false,
windowCount: 0
})
).toThrow(/no BrowserWindow/)
})
it('rejects a window that stays hidden after showInactive()', () => {
expect(() =>
assertPairedClientWindowRevealed({
isVisible: false,
wasVisible: false,
windowCount: 2
})
).toThrow(/stayed hidden after showInactive\(\)/)
})
})