Files
playkit/src/index.ts
T
ilia 8c2af03be3
CI / release (pull_request) Has been skipped
CI / skip-ci-check (pull_request) Successful in 35s
CI / secret-scan (pull_request) Successful in 34s
CI / build-and-test (pull_request) Successful in 55s
CI / selftest (pull_request) Successful in 1m9s
Add Outline-session browser helpers for hidden aria twins and uploads.
preferVisible (default on click), setFilesViaChooser, and cookiesToBearer
came out of driving notes.levkin.ca where Radix menus and attachment APIs
needed session reuse without re-auth.
2026-08-09 19:13:54 -04:00

104 lines
2.1 KiB
TypeScript

/**
* @levkin/playkit — shared Playwright + API test kit
*/
export {
loadConfig,
isPrivateHost,
type PlaykitConfig,
} from './config/loadConfig.js';
export {
RETRY_PRESETS,
resolveRetryPreset,
type RetryPreset,
type RetryPresetName,
} from './config/retryPresets.js';
export { createLogger, type Logger, type LogLevel } from './logging/logger.js';
export { redactSecrets } from './logging/redact.js';
export {
BasePage,
click,
fill,
safeGoto,
waitForVisible,
waitForHidden,
waitForUrlHost,
assertPublicHost,
saveStorageState,
storageStateUse,
cookiesToBearer,
playkitFailureArtifacts,
interceptNetworkCall,
startNetworkErrorMonitor,
NetworkErrorMonitor,
matchesExcludePattern,
dedupeNetworkErrors,
globToRegExp,
responseMatchesFilter,
COMMON_NOISE_PATTERNS,
byAriaLabel,
clickByAriaLabel,
withDialog,
fillContentEditable,
runPersistentSession,
isBrowserCrashError,
setFilesViaChooser,
type ClickOptions,
type FillOptions,
type GotoOptions,
type SetFilesViaChooserOptions,
type StorageStateLike,
type FulfillResponse,
type InterceptNetworkCallOptions,
type InterceptedNetworkCall,
type NetworkError,
type NetworkErrorMonitorOptions,
type ByAriaLabelOptions,
type WithDialogHandlers,
type WithDialogOptions,
type FillContentEditableOptions,
type PersistentSessionOptions,
type LaunchedSession,
} from './browser/index.js';
export {
ApiClient,
assertSchema,
SchemaAssertionError,
type ApiClientOptions,
type ApiRequestOptions,
type ApiResponse,
} from './api/index.js';
export {
TimingCollector,
pushPrometheusMetrics,
type TimingSample,
type MetricsPushOptions,
} from './metrics/index.js';
export {
createPlaykitRuntime,
createPlaykitFixtures,
type PlaykitFixtures,
} from './fixtures/index.js';
export {
MailtrapClient,
loadMailtrapConfig,
MailpitClient,
loadMailpitConfig,
createMailInbox,
readMailHtml,
extractLinks,
firstLinkMatching,
type MailtrapConfig,
type MailtrapMessage,
type WaitForEmailOptions,
type MailpitConfig,
type MailpitMessage,
type WaitForMailpitOptions,
type MailInbox,
} from './mail/index.js';