shiplightai 0.1.98 → 0.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +35 -0
- package/dist/cjs/debugger-pw.cjs +42 -42
- package/dist/cjs/fixture.cjs +73 -72
- package/dist/cjs/index.cjs +69 -69
- package/dist/cjs/reporter.cjs +27 -27
- package/dist/cli.js +115 -115
- package/dist/debugger-pw.js +44 -44
- package/dist/fixture.d.ts +9 -2
- package/dist/fixture.js +73 -72
- package/dist/index.js +69 -69
- package/dist/reporter.js +25 -25
- package/dist/spec/yaml.md +3 -2
- package/dist/static-embedded/assets/{index-DVb6b-JE.js → index-BYe4hJ2h.js} +3 -2
- package/dist/static-embedded/assets/{index-eFclB13U.js → index-DaNac8cL.js} +2 -2
- package/dist/static-embedded/index.html +1 -1
- package/package.json +3 -3
package/dist/fixture.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _playwright_test from '@playwright/test';
|
|
2
|
-
import { Browser, TestInfo } from '@playwright/test';
|
|
2
|
+
import { Browser, TestInfo, BrowserContext, Page } from '@playwright/test';
|
|
3
3
|
export { expect } from '@playwright/test';
|
|
4
4
|
import { VariableStore } from './VariableStore.js';
|
|
5
5
|
import { WebAgent } from './agent/webAgent.js';
|
|
@@ -240,6 +240,12 @@ declare const SDK_ENV_ALLOWLIST: readonly ["GOOGLE_API_KEY", "ANTHROPIC_API_KEY"
|
|
|
240
240
|
* an entirely missing key.
|
|
241
241
|
*/
|
|
242
242
|
declare function buildSdkEnv(source?: Record<string, string | undefined>): Record<string, string>;
|
|
243
|
+
/**
|
|
244
|
+
* Return the context's initial page when one already exists, as it does for a
|
|
245
|
+
* persistent Chromium context. Service workers are not included in pages(), so
|
|
246
|
+
* the existing page is safe to use as the test's main page.
|
|
247
|
+
*/
|
|
248
|
+
declare function resolveTestPage(context: BrowserContext): Promise<Page>;
|
|
243
249
|
type ShiplightFixtures = {
|
|
244
250
|
agent: WebAgent;
|
|
245
251
|
testContext: TestContext;
|
|
@@ -249,9 +255,10 @@ type ShiplightFixtures = {
|
|
|
249
255
|
extensionDir: string | undefined;
|
|
250
256
|
userDataDir: string | undefined;
|
|
251
257
|
extensionStorageState: string | undefined;
|
|
258
|
+
extensionActionPopup: Page;
|
|
252
259
|
autoDismissModal: boolean;
|
|
253
260
|
variables: ShiplightUseOptions['variables'];
|
|
254
261
|
};
|
|
255
262
|
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & ShiplightFixtures, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
|
|
256
263
|
|
|
257
|
-
export { type AuthSpec, EXCLUDED_CONTEXT_OPTION_KEYS, HANDLED_CONTEXT_OPTION_KEYS, SDK_ENV_ALLOWLIST, type TestContext, VIEWPORT_INCOMPATIBLE_OPTIONS, applyVarsOverride, buildSdkEnv, createTestContext, dropViewportIncompatibleOptions, isDeclaredSensitive, mergeResolvedContextOptions, parseVarsOverrideEnv, resolveAuthState, resolveProjectRoot, resolveTestDataDir, resolveUserPath, test };
|
|
264
|
+
export { type AuthSpec, EXCLUDED_CONTEXT_OPTION_KEYS, HANDLED_CONTEXT_OPTION_KEYS, SDK_ENV_ALLOWLIST, type TestContext, VIEWPORT_INCOMPATIBLE_OPTIONS, applyVarsOverride, buildSdkEnv, createTestContext, dropViewportIncompatibleOptions, isDeclaredSensitive, mergeResolvedContextOptions, parseVarsOverrideEnv, resolveAuthState, resolveProjectRoot, resolveTestDataDir, resolveTestPage, resolveUserPath, test };
|