Skip to content

Commit 9ea3b23

Browse files
committed
test(ui): verify Git in device dispatch fixtures
1 parent bf15f9d commit 9ea3b23

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

‎ui/src/e2e/new-session-page.device-dispatch.e2e.test.ts‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ const deviceTargets = [
1515
{ name: "selected", value: "device:paired-runner", target: { deviceId: "paired-runner" } },
1616
{ name: "automatic", value: "auto-device", target: { autoDevice: true } },
1717
];
18+
const gitRepository = {
19+
branches: [{ kind: "local", name: "main" }],
20+
defaultBranch: "main",
21+
repositoryStatus: "git",
22+
};
1823

1924
suite.define(() => {
2025
it("spaces destination section headings consistently", async () => {
@@ -95,6 +100,7 @@ suite.define(() => {
95100
profiles: [],
96101
},
97102
"sessions.create": { key: sessionKey },
103+
"worktrees.branches": gitRepository,
98104
"sessions.list": createdSessionListResult(sessionKey),
99105
"sessions.dispatch": {
100106
ok: true,
@@ -176,6 +182,7 @@ suite.define(() => {
176182
methodResponses: {
177183
"environments.list": { environments: [environment], profiles: [] },
178184
"sessions.create": { key: "agent:main:stale-device-capacity" },
185+
"worktrees.branches": gitRepository,
179186
},
180187
});
181188

@@ -331,11 +338,7 @@ suite.define(() => {
331338
workspaceGit: true,
332339
methodResponses: {
333340
"environments.list": catalog,
334-
"worktrees.branches": {
335-
branches: [{ kind: "local", name: "main" }],
336-
defaultBranch: "main",
337-
repositoryStatus: "git",
338-
},
341+
"worktrees.branches": gitRepository,
339342
"sessions.create": { key: sessionKey },
340343
"sessions.list": createdSessionListResult(sessionKey),
341344
"sessions.dispatch": { placement: { state: "active", generation: 1 } },
@@ -582,11 +585,7 @@ suite.define(() => {
582585
],
583586
profiles: [],
584587
},
585-
"worktrees.branches": {
586-
branches: [{ kind: "local", name: "main" }],
587-
defaultBranch: "main",
588-
repositoryStatus: "git",
589-
},
588+
"worktrees.branches": gitRepository,
590589
"sessions.dispatch": { placement: { state: "active", generation: 1 } },
591590
"sessions.send": { runId: "run-device-recovery", status: "started" },
592591
},

0 commit comments

Comments
 (0)