fix(webui): refine reasoning shell activity copy across locales (#6689)
This commit is contained in:
1 parent
b77e9592af
commit
966ed5e0bd
19 files changed
+535
-535
No files matched your search
@@ -6,21 +6,21 @@ for (const width of [1280, 360]) {
|
||||
await page.addInitScript(() => localStorage.setItem("nanobot.locale", "en"));
|
||||
await page.goto("/browser/fixture.html?case=exec-session");
|
||||
const activity = page.getByRole("region", { name: "Command activity" });
|
||||
await expect(activity).toContainText("Waiting for command result curl -u •••• https://example.invalid");
|
||||
await expect(activity).toContainText("Waiting for command curl -u •••• https://example.invalid");
|
||||
await page.getByRole("button", { name: "running", exact: true }).click();
|
||||
await expect(activity).toContainText("Command was still running at the last check curl -u •••• https://example.invalid");
|
||||
await expect(activity).toContainText("Command still running curl -u •••• https://example.invalid");
|
||||
await page.getByRole("button", { name: "input", exact: true }).click();
|
||||
await expect(activity).toContainText("Sent input curl -u •••• https://example.invalid");
|
||||
await page.getByRole("button", { name: "failed", exact: true }).click();
|
||||
await expect(activity).toContainText("Command failed (exit code 7) curl -u •••• https://example.invalid");
|
||||
await expect(activity).toContainText("Command failed (exit 7) curl -u •••• https://example.invalid");
|
||||
await page.getByRole("button", { name: "many", exact: true }).click();
|
||||
await expect(activity.getByTestId("latest-activity-wheel")).toContainText("Command was still running at the last check");
|
||||
await expect(activity.getByTestId("latest-activity-wheel")).toContainText("Command still running");
|
||||
await activity.getByRole("button", { name: /^Working for / }).click();
|
||||
const disclosure = activity.getByRole("button", { name: "Show earlier command checks (24)" });
|
||||
const disclosure = activity.getByRole("button", { name: "Show 24 earlier checks" });
|
||||
await expect(activity.getByTestId("activity-step")).toHaveCount(1);
|
||||
await disclosure.click();
|
||||
await expect(activity.getByTestId("activity-step")).toHaveCount(25);
|
||||
await activity.getByRole("button", { name: "Hide earlier command checks (24)" }).click();
|
||||
await activity.getByRole("button", { name: "Hide 24 earlier checks" }).click();
|
||||
await expect(activity.getByTestId("activity-step")).toHaveCount(1);
|
||||
await expect(activity).not.toContainText("012345abcdef");
|
||||
await expect(activity).not.toContainText("private-stdin");
|
||||
|
||||
Reference in new issue
Block a user