Skip to main content
Glama
ClickCommandFocusTests.swift1.12 kB
import Foundation import Testing @testable import PeekabooCLI #if !PEEKABOO_SKIP_AUTOMATION @Suite( "Click Command Focus Tests", .serialized, .tags(.automation), .enabled(if: CLITestEnvironment.runAutomationRead) ) struct ClickCommandFocusTests { private func runPeekabooCommand( _ arguments: [String], allowedExitStatuses: Set<Int32> = [0] ) async throws -> CommandRunResult { try await InProcessCommandRunner.runShared(arguments, allowedExitCodes: allowedExitStatuses) } @Test("click help shows focus options") func clickHelpShowsFocusOptions() async throws { let result = try await self.runPeekabooCommand(["click", "--help"]) let output = result.combinedOutput #expect(output.contains("--no-auto-focus")) #expect(output.contains("--focus-timeout-seconds")) #expect(output.contains("--focus-retry-count")) #expect(output.contains("--space-switch")) #expect(output.contains("--bring-to-current-space")) } // Snapshot-based click behavior is validated in opt-in end-to-end suites. } #endif

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server