fix(editor): Render new empty state for quick-connect credentials in standalone mode (#31145)

This commit is contained in:
Bernhard Wittmann 2026-05-28 08:14:19 +02:00 committed by GitHub
parent 25a836dfb7
commit 1e9c6bb26e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -617,6 +617,27 @@ describe('NodeCredentials', () => {
expect(screen.queryByTestId('node-credentials-select')).not.toBeInTheDocument();
});
it('should also show quick-connect-empty-state in standalone mode (NODE-5115)', () => {
setupQuickConnectStores();
ndvStore.activeNode = slackNode;
renderComponent(
{
props: {
node: slackNode,
overrideCredType: 'slackOAuth2Api',
standalone: true,
},
},
{ merge: true },
);
expect(screen.queryByTestId('quick-connect-empty-state')).toBeInTheDocument();
expect(screen.queryByTestId('node-credentials-empty-state')).not.toBeInTheDocument();
expect(screen.queryByTestId('node-credentials-select')).not.toBeInTheDocument();
});
it('should derive service name from credential displayName when no quick connect config', () => {
setupQuickConnectStores();

View File

@ -730,7 +730,6 @@ async function onQuickConnectSignIn(credentialTypeName: string) {
</div>
<div
v-else-if="
!standalone &&
options.length === 0 &&
showQuickConnectEmptyState(type) &&
quickConnectCredentialType &&