@stablyai/internal-playwright 0.1.2 → 0.1.4

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/index.d.ts CHANGED
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export * from 'playwright-core';
17
+ export * from "@stablyai/internal-playwright-core";
package/index.js CHANGED
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- module.exports = require('playwright-core');
17
+ module.exports = require("@stablyai/internal-playwright-core");
package/index.mjs CHANGED
@@ -13,6 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from 'playwright-core';
17
- import playwright from 'playwright-core';
16
+ export * from "@stablyai/internal-playwright-core";
17
+ import playwright from "@stablyai/internal-playwright-core";
18
18
  export default playwright;
@@ -23,7 +23,7 @@ __export(testType_exports, {
23
23
  rootTestType: () => rootTestType
24
24
  });
25
25
  module.exports = __toCommonJS(testType_exports);
26
- var import_playwright_core = require("playwright-core");
26
+ var import_internal_playwright_core = require("@stablyai/internal-playwright-core");
27
27
  var import_utils = require("playwright-core/lib/utils");
28
28
  var import_globals = require("./globals");
29
29
  var import_test = require("./test");
@@ -252,7 +252,7 @@ class TestTypeImpl {
252
252
  }
253
253
  }, options.timeout ? (0, import_utils.monotonicTime)() + options.timeout : 0);
254
254
  if (result.timedOut)
255
- throw new import_playwright_core.errors.TimeoutError(`Step timeout of ${options.timeout}ms exceeded.`);
255
+ throw new import_internal_playwright_core.errors.TimeoutError(`Step timeout of ${options.timeout}ms exceeded.`);
256
256
  step.complete({});
257
257
  return result.result;
258
258
  } catch (error) {
package/lib/index.js CHANGED
@@ -39,7 +39,7 @@ __export(index_exports, {
39
39
  module.exports = __toCommonJS(index_exports);
40
40
  var import_fs = __toESM(require("fs"));
41
41
  var import_path = __toESM(require("path"));
42
- var playwrightLibrary = __toESM(require("playwright-core"));
42
+ var playwrightLibrary = __toESM(require("@stablyai/internal-playwright-core"));
43
43
  var import_utils = require("playwright-core/lib/utils");
44
44
  var import_globals = require("./common/globals");
45
45
  var import_testType = require("./common/testType");
@@ -65,7 +65,7 @@ const playwrightFixtures = {
65
65
  defaultBrowserType: ["chromium", { scope: "worker", option: true, box: true }],
66
66
  browserName: [({ defaultBrowserType }, use) => use(defaultBrowserType), { scope: "worker", option: true, box: true }],
67
67
  playwright: [async ({}, use) => {
68
- await use(require("playwright-core"));
68
+ await use(require("@stablyai/internal-playwright-core"));
69
69
  }, { scope: "worker", box: true }],
70
70
  headless: [({ launchOptions }, use) => use(launchOptions.headless ?? true), { scope: "worker", option: true, box: true }],
71
71
  channel: [({ launchOptions }, use) => use(launchOptions.channel), { scope: "worker", option: true, box: true }],
@@ -36,7 +36,7 @@ var import_crypto = __toESM(require("crypto"));
36
36
  var import_fs = __toESM(require("fs"));
37
37
  var import_net = __toESM(require("net"));
38
38
  var import_path = __toESM(require("path"));
39
- var playwright = __toESM(require("playwright-core"));
39
+ var playwright = __toESM(require("@stablyai/internal-playwright-core"));
40
40
  var import_registry = require("playwright-core/lib/server/registry/index");
41
41
  var import_server = require("playwright-core/lib/server");
42
42
  var import_log = require("../log");
@@ -45,7 +45,7 @@ module.exports = __toCommonJS(config_exports);
45
45
  var import_fs = __toESM(require("fs"));
46
46
  var import_os = __toESM(require("os"));
47
47
  var import_path = __toESM(require("path"));
48
- var import_playwright_core = require("playwright-core");
48
+ var import_internal_playwright_core = require("@stablyai/internal-playwright-core");
49
49
  var import_utilsBundle = require("playwright-core/lib/utilsBundle");
50
50
  var import_util = require("../../util");
51
51
  var import_server = require("../sdk/server");
@@ -135,7 +135,7 @@ function configFromCLIOptions(cliOptions) {
135
135
  }
136
136
  if (cliOptions.device && cliOptions.cdpEndpoint)
137
137
  throw new Error("Device emulation is not supported with cdpEndpoint.");
138
- const contextOptions = cliOptions.device ? import_playwright_core.devices[cliOptions.device] : {};
138
+ const contextOptions = cliOptions.device ? import_internal_playwright_core.devices[cliOptions.device] : {};
139
139
  if (cliOptions.storageState)
140
140
  contextOptions.storageState = cliOptions.storageState;
141
141
  if (cliOptions.userAgent)
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(context_exports);
35
35
  var import_fs = __toESM(require("fs"));
36
36
  var import_path = __toESM(require("path"));
37
37
  var import_utilsBundle = require("playwright-core/lib/utilsBundle");
38
- var import_playwright_core = require("playwright-core");
38
+ var import_internal_playwright_core = require("@stablyai/internal-playwright-core");
39
39
  var import_log = require("../log");
40
40
  var import_tab = require("./tab");
41
41
  var import_config = require("./config");
@@ -196,7 +196,7 @@ class Context {
196
196
  if (this._closeBrowserContextPromise)
197
197
  throw new Error("Another browser context is being closed.");
198
198
  if (this.config.testIdAttribute)
199
- import_playwright_core.selectors.setTestIdAttribute(this.config.testIdAttribute);
199
+ import_internal_playwright_core.selectors.setTestIdAttribute(this.config.testIdAttribute);
200
200
  const result = await this._browserContextFactory.createContext(this._clientInfo, this._abortController.signal, this._runningToolName);
201
201
  const { browserContext } = result;
202
202
  await this._setupRequestInterception(browserContext);
@@ -31,7 +31,7 @@ __export(extensionContextFactory_exports, {
31
31
  ExtensionContextFactory: () => ExtensionContextFactory
32
32
  });
33
33
  module.exports = __toCommonJS(extensionContextFactory_exports);
34
- var playwright = __toESM(require("playwright-core"));
34
+ var playwright = __toESM(require("@stablyai/internal-playwright-core"));
35
35
  var import_utilsBundle = require("playwright-core/lib/utilsBundle");
36
36
  var import_http = require("../sdk/http");
37
37
  var import_cdpRelay = require("./cdpRelay");
package/lib/util.js CHANGED
@@ -67,7 +67,7 @@ var import_util = __toESM(require("util"));
67
67
  var import_utils = require("playwright-core/lib/utils");
68
68
  var import_utilsBundle = require("playwright-core/lib/utilsBundle");
69
69
  const PLAYWRIGHT_TEST_PATH = import_path.default.join(__dirname, "..");
70
- const PLAYWRIGHT_CORE_PATH = import_path.default.dirname(require.resolve("playwright-core/package.json"));
70
+ const PLAYWRIGHT_CORE_PATH = import_path.default.dirname(require.resolve("@stablyai/internal-playwright-core/package.json"));
71
71
  function filterStackTrace(e) {
72
72
  const name = e.name ? e.name + ": " : "";
73
73
  const cause = e.cause instanceof Error ? filterStackTrace(e.cause) : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stablyai/internal-playwright",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "license": "Apache-2.0",
68
68
  "dependencies": {
69
- "@stablyai/internal-playwright-core": "0.1.2"
69
+ "@stablyai/internal-playwright-core": "0.1.4"
70
70
  },
71
71
  "optionalDependencies": {
72
72
  "fsevents": "2.3.2"
package/types/test.d.ts CHANGED
@@ -15,9 +15,9 @@
15
15
  * limitations under the License.
16
16
  */
17
17
 
18
- import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
18
+ import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from '@stablyai/internal-playwright-core';
19
19
  import { TestStepInfo, WorkerInfo } from 'playwright/test';
20
- export * from 'playwright-core';
20
+ export * from '@stablyai/internal-playwright-core';
21
21
 
22
22
  export type BlobReporterOptions = { outputDir?: string, fileName?: string };
23
23
  export type ListReporterOptions = { printSteps?: boolean };
@@ -7579,7 +7579,7 @@ export interface StablyTestOptions {
7579
7579
  * [fixtures.page](https://playwright.dev/docs/api/class-fixtures#fixtures-page).
7580
7580
  */
7581
7581
  export interface PlaywrightWorkerArgs {
7582
- playwright: typeof import('playwright-core');
7582
+ playwright: typeof import('@stablyai/internal-playwright-core');
7583
7583
  /**
7584
7584
  * [Browser](https://playwright.dev/docs/api/class-browser) instance is shared between all tests in the
7585
7585
  * [same worker](https://playwright.dev/docs/test-parallel) - this makes testing efficient. However, each test runs in an isolated
@@ -8502,7 +8502,6 @@ export function mergeExpects<List extends any[]>(...expects: List): MergedExpect
8502
8502
  export { };
8503
8503
 
8504
8504
 
8505
-
8506
8505
  /**
8507
8506
  * The [APIResponseAssertions](https://playwright.dev/docs/api/class-apiresponseassertions) class provides assertion
8508
8507
  * methods that can be used to make assertions about the