惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor(google-meet): tidy browser create control · open...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -74,6 +74,39 @@ function captureStdout() {

7474

};

7575

}

767677+

async function runCreateMeetBrowserScript(params: { buttonText: string }) {

78+

const location = {

79+

href: "https://meet.google.com/new",

80+

hostname: "meet.google.com",

81+

};

82+

const button = {

83+

disabled: false,

84+

innerText: params.buttonText,

85+

textContent: params.buttonText,

86+

getAttribute: (name: string) => (name === "aria-label" ? params.buttonText : null),

87+

click: vi.fn(() => {

88+

location.href = "https://meet.google.com/abc-defg-hij";

89+

}),

90+

};

91+

const document = {

92+

title: "Meet",

93+

body: {

94+

innerText: "Do you want people to hear you in the meeting?",

95+

textContent: "Do you want people to hear you in the meeting?",

96+

},

97+

querySelectorAll: (selector: string) => (selector === "button" ? [button] : []),

98+

};

99+

vi.stubGlobal("document", document);

100+

vi.stubGlobal("location", location);

101+

const fn = (0, eval)(`(${CREATE_MEET_FROM_BROWSER_SCRIPT})`) as () => Promise<{

102+

meetingUri?: string;

103+

manualActionReason?: string;

104+

notes?: string[];

105+

retryAfterMs?: number;

106+

}>;

107+

return { button, result: await fn() };

108+

}

109+77110

type TestBridgeProcess = {

78111

stdin?: { write(chunk: unknown): unknown } | null;

79112

stdout?: { on(event: "data", listener: (chunk: unknown) => void): unknown } | null;

@@ -853,50 +886,15 @@ describe("google-meet plugin", () => {

853886

])(

854887

"uses browser automation for Meet's %s choice during browser creation",

855888

async (buttonText, note) => {

856-

const location = {

857-

href: "https://meet.google.com/new",

858-

hostname: "meet.google.com",

859-

};

860-

const button = {

861-

disabled: false,

862-

innerText: buttonText,

863-

textContent: buttonText,

864-

getAttribute: (name: string) => (name === "aria-label" ? buttonText : null),

865-

click: vi.fn(() => {

866-

location.href = "https://meet.google.com/abc-defg-hij";

867-

}),

868-

};

869-

const document = {

870-

title: "Meet",

871-

body: {

872-

innerText: "Do you want people to hear you in the meeting?",

873-

textContent: "Do you want people to hear you in the meeting?",

874-

},

875-

querySelectorAll: (selector: string) => (selector === "button" ? [button] : []),

876-

};

877-

vi.stubGlobal("document", document);

878-

vi.stubGlobal("location", location);

879-

vi.useFakeTimers();

880-881-

try {

882-

const fn = (0, eval)(`(${CREATE_MEET_FROM_BROWSER_SCRIPT})`) as () => Promise<{

883-

meetingUri?: string;

884-

manualActionReason?: string;

885-

notes?: string[];

886-

retryAfterMs?: number;

887-

}>;

888-

const result = await fn();

889-890-

expect(result).toMatchObject({

891-

retryAfterMs: 1000,

892-

notes: [note],

893-

});

894-

expect(button.click).toHaveBeenCalledTimes(1);

895-

expect(result.meetingUri).toBeUndefined();

896-

expect(result.manualActionReason).toBeUndefined();

897-

} finally {

898-

vi.useRealTimers();

899-

}

889+

const { button, result } = await runCreateMeetBrowserScript({ buttonText });

890+891+

expect(result).toMatchObject({

892+

retryAfterMs: 1000,

893+

notes: [note],

894+

});

895+

expect(button.click).toHaveBeenCalledTimes(1);

896+

expect(result.meetingUri).toBeUndefined();

897+

expect(result.manualActionReason).toBeUndefined();

900898

},

901899

);

902900