mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
fix(editor): Render new empty state for quick-connect credentials in standalone mode (#31145)
This commit is contained in:
parent
25a836dfb7
commit
1e9c6bb26e
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -730,7 +730,6 @@ async function onQuickConnectSignIn(credentialTypeName: string) {
|
|||
</div>
|
||||
<div
|
||||
v-else-if="
|
||||
!standalone &&
|
||||
options.length === 0 &&
|
||||
showQuickConnectEmptyState(type) &&
|
||||
quickConnectCredentialType &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user