源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
commit
04bac1f6e2
2200 files changed
+489415
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
import { ExtensionDetailModal } from "../src/react-app/design-system/extension-detail-modal";
|
||||
|
||||
describe("ExtensionDetailModal connection errors", () => {
|
||||
test("keeps the connection detail visible and shows the failed OAuth attempt", () => {
|
||||
const html = renderToStaticMarkup(
|
||||
<ExtensionDetailModal
|
||||
open
|
||||
presentation="page"
|
||||
onClose={() => {}}
|
||||
name="BigQuery"
|
||||
description="Connect BigQuery to your organization."
|
||||
taxonomy="connection"
|
||||
oauth
|
||||
errorInfo="Sign-in did not complete. Check the provider window for an OAuth error."
|
||||
onConnect={() => {}}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(html).toContain('role="alert"');
|
||||
expect(html).toContain("Sign-in did not complete");
|
||||
expect(html).toContain("Connect");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user