import { render } from "lit"; import { describe, expect, it } from "vitest"; import { i18n } from "../../i18n/index.ts"; import { getSafeLocalStorage } from "../../local-storage.ts"; import { renderOverview, type OverviewProps } from "./overview.ts";
expect(container.textContent).toContain("Scope upgrade pending approval.");
expect(container.textContent).toContain( "This device is already paired, but the requested wider scope is waiting for approval.",
);
expect(container.textContent).toContain("openclaw devices approve req-123");
});
it("does not suggest preview-only latest approval when the request id is absent", async () => { const container = document.createElement("div"); const props = createOverviewProps({
lastError: "scope upgrade pending approval",
lastErrorCode: "PAIRING_REQUIRED",
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.