Skip to content

The agent that grows with you

test(desktop): the named-account notice links by account id; key list includes renameGone

Siddharth Balyan93a8a7856bb9
diff --git a/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx b/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
index 1bc8ebef572..c4013a7cc0a 100644
--- a/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/connector-tool.test.tsx
@@ -127,8 +127,8 @@ function Where() {
}
describe('ConnectorOffer named-account notice', () => {
- it('says which name Hermes chose once the account connected, and Rename opens that account on the Connectors tab', () => {
- const request = { ...REQUEST, settled: true, targets: [{ ...GMAIL, alias: 'work', state: 'connected' as const }] }
+ it('says which name Hermes chose once the account connected, and Rename opens that account (by id) on the Connectors tab', () => {
+ const request = { ...REQUEST, settled: true, targets: [{ ...GMAIL, alias: 'work', connectionId: 'ca_work', state: 'connected' as const }] }
setConnectionRequest(request)
render(
@@ -147,7 +147,7 @@ describe('ConnectorOffer named-account notice', () => {
fireEvent.click(screen.getByRole('button', { name: 'Rename' }))
expect(screen.getByTestId('where').textContent).toBe(
- '/capabilities?tab=connectors&connector=gmail&profile=default&rename=work'
+ '/capabilities?tab=connectors&connector=gmail&profile=default&rename=ca_work'
)
})
})
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index 406c112f893..26cb430779a 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -1057,6 +1057,7 @@
"connectorsPage.accounts.removeBody",
"connectorsPage.accounts.removeTitle",
"connectorsPage.accounts.rename",
+ "connectorsPage.accounts.renameGone",
"connectorsPage.accounts.renameLabel",
"connectorsPage.accounts.retiredCount",
"connectorsPage.accounts.status.expired",