Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Tests: stub restoreComposerModeBeforeSend in the sendMessage harnesses

Claudea7196efb2644
diff --git a/test/chat-steering-ui.mjs b/test/chat-steering-ui.mjs
index ecea3ccc8..a6304a5f4 100644
--- a/test/chat-steering-ui.mjs
+++ b/test/chat-steering-ui.mjs
@@ -174,6 +174,7 @@ for (const [build, engine] of [['chrome', chromium], ['firefox', firefox]]) {
function normalizeSelectionSourceGrounding() { return null; }
function normalizeSelectionAction() { return ''; }
function waitForVisibleSidePanelStateRefresh() { refreshCalls++; return heldRefresh || Promise.resolve(); }
+ async function restoreComposerModeBeforeSend() {}
function dismissSelectionAskAction() {}
function stopListening() {}
function permissionSkipCommandContextForDraft() { return null; }
diff --git a/test/queued-composer-ownership.mjs b/test/queued-composer-ownership.mjs
index 73c1b2d88..9d23ccc78 100644
--- a/test/queued-composer-ownership.mjs
+++ b/test/queued-composer-ownership.mjs
@@ -33,6 +33,8 @@ function fixture(build, { preferences = Promise.resolve(), refresh = Promise.res
steeringRequestsByTab: new Map(), queuedComposerMessageSeq: 0,
composerDeliveryModeReady: preferences, composerDeliveryMode: 'queue',
waitForVisibleSidePanelStateRefresh: () => refresh,
+ // The tab's kept mode is already read in these fixtures.
+ restoreComposerModeBeforeSend: async () => {},
parseSlashCommands: async text => { await parsing; return text; },
submitted, errors, tabInputDrafts: drafts,
saveInputDraftForTab: (tabId, text) => drafts.set(Number(tabId), text),