|
1 | 1 | import { expect, test } from 'vitest'; |
2 | | -import type { CaptureSnapshotInput } from '@agent-device/contracts/platform'; |
3 | 2 | import { ANDROID_EMULATOR, IOS_SIMULATOR } from '../../__tests__/test-utils/device-fixtures.ts'; |
4 | 3 | import { |
5 | 4 | makeAndroidSession, |
@@ -48,23 +47,6 @@ test('repeated captures reuse the one binding the plan was admitted for', async |
48 | 47 | expect(fixture.captures).toHaveLength(2); |
49 | 48 | }); |
50 | 49 |
|
51 | | -test('a per-capture signal reaches the bound operation for a poll deadline', async () => { |
52 | | - const fixture = selectorCaptureFixture(); |
53 | | - const bound = await resolveBoundSelectorCapture({ |
54 | | - command: 'wait', |
55 | | - device: ANDROID_EMULATOR, |
56 | | - session: makeAndroidSession('selector'), |
57 | | - inspectFacts: fixture.inspectFacts, |
58 | | - bindDevice: fixture.bindDevice, |
59 | | - }); |
60 | | - if (!bound.ok) throw new Error('expected an admitted capture'); |
61 | | - const deadline = new AbortController(); |
62 | | - deadline.abort(new Error('poll deadline')); |
63 | | - |
64 | | - const input: CaptureSnapshotInput = { signal: deadline.signal }; |
65 | | - await expect(bound.operations.capture(input)).rejects.toThrow(/poll deadline/); |
66 | | -}); |
67 | | - |
68 | 50 | test('an unavailable required operation refuses before any bind', async () => { |
69 | 51 | const fixture = selectorCaptureFixture({ |
70 | 52 | capture: { available: false, reason: 'unsupported-platform-leaf' }, |
|
0 commit comments