@lowdefy/block-dev-e2e 0.0.0-experimental-20260928062533 → 0.0.0-experimental-20260928105334

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/README.md CHANGED
@@ -152,12 +152,6 @@ pnpm e2e --headed # Run with visible browser
152
152
  pnpm e2e --debug # Debug mode
153
153
  ```
154
154
 
155
- The test app is built and served with the Lowdefy CLI from `packages/cli/dist`, in
156
- `_server/e2e/<package>` at the monorepo root: an untracked copy of `packages/servers/server`
157
- that `scripts/prepare-e2e-server.mjs` prepares on each run. Build the monorepo first
158
- (`pnpm build`). A run leaves tracked files unchanged, and different packages can run at the
159
- same time.
160
-
161
155
  ## Port Assignments
162
156
 
163
157
  Use unique ports to allow parallel test runs:
@@ -14,20 +14,14 @@
14
14
  limitations under the License.
15
15
  */ import path from 'path';
16
16
  import { defineConfig, devices } from '@playwright/test';
17
- function createPlaywrightConfig({ packageDir, port: defaultPort = 3001 }) {
18
- // Worktrees share the machine, so a fixed port could reach another checkout's server.
19
- // LOWDEFY_E2E_PORT moves the run, and an existing server is only reused on request.
20
- const port = Number(process.env.LOWDEFY_E2E_PORT ?? defaultPort);
17
+ function createPlaywrightConfig({ packageDir, port = 3001 }) {
21
18
  const e2eDir = path.join(packageDir, 'e2e');
22
19
  const appDir = path.join(e2eDir, 'app');
23
20
  // Calculate paths relative to monorepo root
24
21
  // packageDir is like: /path/to/lowdefy/packages/plugins/blocks/blocks-basic
25
22
  const monorepoRoot = path.resolve(packageDir, '../../../../');
26
23
  const cliPath = path.join(monorepoRoot, 'packages/cli/dist/index.js');
27
- const prepareServerPath = path.join(monorepoRoot, 'scripts/prepare-e2e-server.mjs');
28
- // Each package builds into its own untracked copy of the server, so a run leaves the
29
- // worktree clean and different packages can run at the same time.
30
- const serverDir = path.join(monorepoRoot, '_server/e2e', path.basename(packageDir));
24
+ const serverDir = path.join(monorepoRoot, 'packages/servers/server');
31
25
  return defineConfig({
32
26
  testDir: packageDir,
33
27
  testMatch: [
@@ -50,13 +44,9 @@ function createPlaywrightConfig({ packageDir, port: defaultPort = 3001 }) {
50
44
  }
51
45
  ],
52
46
  webServer: {
53
- command: [
54
- `node ${prepareServerPath} --config-directory ${appDir} --server-directory ${serverDir} --log-level warn`,
55
- `node ${cliPath} build --config-directory ${appDir} --server-directory ${serverDir}`,
56
- `node ${cliPath} start --config-directory ${appDir} --server-directory ${serverDir} --port ${port} --log-level warn`
57
- ].join(' && '),
47
+ command: `node ${cliPath} build --config-directory ${appDir} --server-directory ${serverDir} && node ${cliPath} start --config-directory ${appDir} --server-directory ${serverDir} --port ${port} --log-level warn`,
58
48
  url: `http://localhost:${port}`,
59
- reuseExistingServer: process.env.LOWDEFY_E2E_REUSE_SERVER === 'true',
49
+ reuseExistingServer: true,
60
50
  timeout: 180000
61
51
  }
62
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/block-dev-e2e",
3
- "version": "0.0.0-experimental-20260928062533",
3
+ "version": "0.0.0-experimental-20260928105334",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Block E2E Testing Tools",
6
6
  "homepage": "https://lowdefy.com",
@@ -29,7 +29,7 @@
29
29
  "dist/*"
30
30
  ],
31
31
  "dependencies": {
32
- "@lowdefy/e2e-utils": "0.0.0-experimental-20260928062533",
32
+ "@lowdefy/e2e-utils": "0.0.0-experimental-20260928105334",
33
33
  "@playwright/test": "1.59.1"
34
34
  },
35
35
  "devDependencies": {