mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix(ci): isolate desktop e2e runtime
This commit is contained in:
@@ -715,7 +715,6 @@ async function startRelay(excludedPorts: Set<number>): Promise<RelayPorts> {
|
||||
|
||||
function startMetro(input: {
|
||||
metroPort: number;
|
||||
daemonPort: number;
|
||||
buffer: ReturnType<typeof createLineBuffer>;
|
||||
}): ChildProcess {
|
||||
const appDir = path.resolve(__dirname, "../..");
|
||||
@@ -727,7 +726,6 @@ function startMetro(input: {
|
||||
...(process.env.E2E_DESKTOP_RUNTIME === "1"
|
||||
? {
|
||||
PASEO_WEB_PLATFORM: "electron",
|
||||
EXPO_PUBLIC_LOCAL_DAEMON: `127.0.0.1:${input.daemonPort}`,
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
@@ -875,7 +873,6 @@ export default async function globalSetup() {
|
||||
try {
|
||||
metroProcess = startMetro({
|
||||
metroPort,
|
||||
daemonPort: port,
|
||||
buffer: metroLineBuffer,
|
||||
});
|
||||
await waitForMetro(metroPort, {
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { buildHostWorkspaceRoute } from "../../app/src/utils/host-routes";
|
||||
import { expect, test, type Page } from "../../app/e2e/support/fixtures";
|
||||
import { gotoAppShell } from "../../app/e2e/support/helpers/app";
|
||||
import {
|
||||
createIdleAgent,
|
||||
expectWorkspaceTabVisible,
|
||||
} from "../../app/e2e/support/helpers/archive-tab";
|
||||
import { expectWorkspaceTabVisible } from "../../app/e2e/support/helpers/archive-tab";
|
||||
import { getE2EDaemonPort } from "../../app/e2e/support/helpers/daemon-port";
|
||||
import { installDaemonWebSocketGate } from "../../app/e2e/support/helpers/daemon-websocket-gate";
|
||||
import { expectAppRoute } from "../../app/e2e/support/helpers/route-assertions";
|
||||
@@ -84,7 +81,10 @@ test("refresh keeps one continuous splash before restoring the desktop workspace
|
||||
const workspace = await seedWorkspace({ repoPrefix: "workspace-refresh-route-" });
|
||||
|
||||
try {
|
||||
const agent = await createIdleAgent(workspace.client, {
|
||||
const agent = await workspace.client.createAgent({
|
||||
provider: "mock",
|
||||
model: "ten-second-stream",
|
||||
modeId: "load-test",
|
||||
cwd: workspace.repoPath,
|
||||
workspaceId: workspace.workspaceId,
|
||||
title: `workspace-refresh-route-${Date.now()}`,
|
||||
|
||||
Reference in New Issue
Block a user