flashwright 0.0.0-stage → 1.64.1-flashwright.2

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.
Files changed (67) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/README.md +17 -2
  4. package/ThirdPartyNotices.txt +14 -0
  5. package/cli.js +37 -0
  6. package/index.d.ts +17 -0
  7. package/index.js +17 -0
  8. package/index.mjs +18 -0
  9. package/lib/agents/agentParser.js +89 -0
  10. package/lib/agents/copilot-setup-steps.yml +34 -0
  11. package/lib/agents/generateAgents.js +395 -0
  12. package/lib/agents/playwright-test-coverage.prompt.md +31 -0
  13. package/lib/agents/playwright-test-generate.prompt.md +8 -0
  14. package/lib/agents/playwright-test-generator.agent.md +88 -0
  15. package/lib/agents/playwright-test-heal.prompt.md +6 -0
  16. package/lib/agents/playwright-test-healer.agent.md +56 -0
  17. package/lib/agents/playwright-test-plan.prompt.md +9 -0
  18. package/lib/agents/playwright-test-planner.agent.md +74 -0
  19. package/lib/cli/reportActions.js +78 -0
  20. package/lib/cli/testActions.js +219 -0
  21. package/lib/codeCache.js +141 -0
  22. package/lib/codeCache.js.txt +8 -0
  23. package/lib/common/index.js +2974 -0
  24. package/lib/common/index.js.txt +33 -0
  25. package/lib/errorContext.js +129 -0
  26. package/lib/globals.js +58 -0
  27. package/lib/index.js +896 -0
  28. package/lib/isomorphic.js +260 -0
  29. package/lib/isomorphic.js.txt +9 -0
  30. package/lib/loader/loaderProcessEntry.js +34 -0
  31. package/lib/loader/loaderProcessEntry.js.txt +9 -0
  32. package/lib/matchers/expect.js +13496 -0
  33. package/lib/matchers/expect.js.LICENSE +640 -0
  34. package/lib/matchers/expect.js.txt +67 -0
  35. package/lib/mcp/test/browserBackend.js +135 -0
  36. package/lib/mcp/test/generatorTools.js +122 -0
  37. package/lib/mcp/test/plannerTools.js +150 -0
  38. package/lib/mcp/test/seed.js +82 -0
  39. package/lib/mcp/test/streams.js +44 -0
  40. package/lib/mcp/test/testBackend.js +99 -0
  41. package/lib/mcp/test/testContext.js +306 -0
  42. package/lib/mcp/test/testTool.js +30 -0
  43. package/lib/mcp/test/testTools.js +98 -0
  44. package/lib/package.js +47 -0
  45. package/lib/program.js +248 -0
  46. package/lib/runner/index.js +8819 -0
  47. package/lib/runner/index.js.txt +65 -0
  48. package/lib/runner/session.js +723 -0
  49. package/lib/runner/session.js.txt +8 -0
  50. package/lib/runner/workerStandby.js +206 -0
  51. package/lib/runner/workerStandby.js.txt +8 -0
  52. package/lib/speculativeBrowser.js +228 -0
  53. package/lib/transform/babelBundle.js +72490 -0
  54. package/lib/transform/babelBundle.js.LICENSE +2384 -0
  55. package/lib/transform/babelBundle.js.txt +328 -0
  56. package/lib/transform/esmLoader.js +8090 -0
  57. package/lib/transform/esmLoader.js.LICENSE +355 -0
  58. package/lib/transform/esmLoader.js.txt +60 -0
  59. package/lib/util.js +373 -0
  60. package/lib/worker/workerProcessEntry.js +2015 -0
  61. package/lib/worker/workerProcessEntry.js.txt +22 -0
  62. package/package.json +64 -4
  63. package/test.d.ts +18 -0
  64. package/test.js +40 -0
  65. package/test.mjs +35 -0
  66. package/types/test.d.ts +11316 -0
  67. package/types/testReporter.d.ts +950 -0
@@ -0,0 +1,22 @@
1
+ # packages/playwright/lib/worker/workerProcessEntry.js
2
+ # total: 79.7 KB
3
+
4
+ ## Inlined (9)
5
+ 4.6 KB packages/playwright/src/speculativeBrowser.ts
6
+ 3.7 KB packages/playwright/src/util.ts
7
+ 8.7 KB packages/playwright/src/worker/fixtureRunner.ts
8
+ 21.3 KB packages/playwright/src/worker/testInfo.ts
9
+ 11.9 KB packages/playwright/src/worker/testTracing.ts
10
+ 5.4 KB packages/playwright/src/worker/timeoutManager.ts
11
+ 0.3 KB packages/playwright/src/worker/util.ts
12
+ 21.3 KB packages/playwright/src/worker/workerMain.ts
13
+ 1.0 KB packages/playwright/src/worker/workerProcessEntry.ts
14
+
15
+ ## External (7)
16
+ ../codeCache
17
+ ../common
18
+ ../globals
19
+ ../matchers/expect
20
+ playwright-core
21
+ playwright-core/lib/coreBundle
22
+ playwright-core/lib/utilsBundle
package/package.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
2
  "name": "flashwright",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.64.1-flashwright.2",
4
+ "description": "Flashwright: a faster drop-in replacement for Playwright (fork of Playwright 1.64.1)",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/xcodebeast/flashwright.git"
8
+ },
9
+ "homepage": "https://github.com/xcodebeast/flashwright",
10
+ "engines": {
11
+ "node": ">=20"
12
+ },
13
+ "main": "index.js",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "import": "./index.mjs",
18
+ "require": "./index.js",
19
+ "default": "./index.js"
20
+ },
21
+ "./package.json": "./package.json",
22
+ "./lib/common": "./lib/common/index.js",
23
+ "./lib/program": "./lib/program.js",
24
+ "./lib/runner/workerStandby": "./lib/runner/workerStandby.js",
25
+ "./lib/runner/session": "./lib/runner/session.js",
26
+ "./lib/codeCache": "./lib/codeCache.js",
27
+ "./lib/runner": "./lib/runner/index.js",
28
+ "./lib/transform/babelBundle": "./lib/transform/babelBundle.js",
29
+ "./lib/util": "./lib/util.js",
30
+ "./types/test": {
31
+ "types": "./types/test.d.ts"
32
+ },
33
+ "./types/testReporter": {
34
+ "types": "./types/testReporter.d.ts"
35
+ },
36
+ "./test": {
37
+ "types": "./test.d.ts",
38
+ "import": "./test.mjs",
39
+ "require": "./test.js",
40
+ "default": "./test.js"
41
+ }
42
+ },
43
+ "bin": {
44
+ "playwright": "cli.js"
45
+ },
46
+ "author": {
47
+ "name": "Microsoft Corporation"
48
+ },
49
+ "license": "Apache-2.0",
50
+ "dependencies": {
51
+ "playwright-core": "npm:flashwright-core@1.64.1-flashwright.2"
52
+ },
53
+ "bugs": {
54
+ "url": "https://github.com/xcodebeast/flashwright/issues"
55
+ },
56
+ "keywords": [
57
+ "playwright",
58
+ "flashwright",
59
+ "e2e",
60
+ "testing",
61
+ "browser",
62
+ "automation",
63
+ "test-runner",
64
+ "fast"
65
+ ]
66
+ }
package/test.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export * from './types/test';
18
+ export { default } from './types/test';
package/test.js ADDED
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ const pwt = require('./lib/index');
18
+
19
+ // Flashwright: the library half of these exports (browser types, devices, request, ...) starts an
20
+ // in-process Playwright with its server when first created. The test runner's own process loads
21
+ // this module for every config and test file but rarely touches the library, so it is created on
22
+ // first access instead. Workers create it as soon as the browser fixtures run.
23
+ let playwright;
24
+ const library = () => playwright ??= require('./index');
25
+ const libraryKeys = ['request', 'chromium', 'firefox', 'webkit', '_android', '_electron', 'devices', 'selectors', 'errors'];
26
+
27
+ const exported = pwt.test;
28
+ for (const key of libraryKeys) {
29
+ if (key in pwt)
30
+ continue;
31
+ Object.defineProperty(exported, key, {
32
+ enumerable: true,
33
+ configurable: true,
34
+ get: () => library()[key],
35
+ set: value => Object.defineProperty(exported, key, { enumerable: true, configurable: true, writable: true, value }),
36
+ });
37
+ }
38
+ Object.assign(exported, pwt);
39
+
40
+ module.exports = exported;
package/test.mjs ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import playwright from './test.js';
18
+
19
+ export const chromium = playwright.chromium;
20
+ export const firefox = playwright.firefox;
21
+ export const webkit = playwright.webkit;
22
+ export const selectors = playwright.selectors;
23
+ export const devices = playwright.devices;
24
+ export const errors = playwright.errors;
25
+ export const request = playwright.request;
26
+ export const _electron = playwright._electron;
27
+ export const _android = playwright._android;
28
+ export const _baseTest = playwright._baseTest;
29
+ export const _utilityTest = playwright._utilityTest;
30
+ export const test = playwright.test;
31
+ export const expect = playwright.expect;
32
+ export const defineConfig = playwright.defineConfig;
33
+ export const mergeTests = playwright.mergeTests;
34
+ export const mergeExpects = playwright.mergeExpects;
35
+ export default playwright.test;