Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/scenarios/api-tools.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ scenario(
// bootstrap admin, so other scenarios' connections legitimately appear here;
// asserting a global count there is exactly what e2e/AGENTS.md forbids.
const connections = yield* api.connections.list({ query: {} });
if (target.name === "selfhost") return;
if (target.name.startsWith("selfhost")) return;
expect(connections.length, "a fresh org starts with no connections").toBe(0);
}),
);
2 changes: 1 addition & 1 deletion e2e/scenarios/org-slug-routing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ scenario(
// the URL segment, so the slug is cosmetic and an unknown one canonicalizes
// onto the shell rather than 404ing. Cloud enforces the not-found; selfhost
// legitimately does not.
if (target.name !== "selfhost") {
if (!target.name.startsWith("selfhost")) {
await step("An unknown org slug is a wrong address, not a redirect", async () => {
await page.goto("/zz-no-such-org/policies", { waitUntil: "networkidle" });
await page.getByText("Page not found").waitFor({ timeout: 30_000 });
Expand Down
7 changes: 6 additions & 1 deletion e2e/selfhost/toolkits-ui.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,14 @@ scenario(
await page.getByRole("button", { name: "Manage toolkit connections" }).click();
const dialog = page.getByRole("dialog", { name: "Manage connections" });
await dialog.waitFor();
// The contract is the explanation, not the count: this suite's own
// hidden connection guarantees at least one, but the workspace is
// shared, so another scenario's personal connection may legitimately
// raise the number (asserting a global count is what e2e/AGENTS.md
// forbids).
await dialog
.getByText(
"You have 1 personal connection that is not shown because this is a shared toolkit.",
/You have \d+ personal connections? that (?:is|are) not shown because this is a shared toolkit\./,
)
.waitFor();
});
Expand Down
Loading