Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIvaniv committed Oct 1, 2024
1 parent 17923a0 commit 3ae319a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions cypress/e2e/4-node-creator.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { addNodeToCanvas, addRetrieverNodeToParent, addVectorStoreNodeToParent, getNodeCreatorItems } from '../composables/workflow';
import {
addNodeToCanvas,
addRetrieverNodeToParent,
addVectorStoreNodeToParent,
getNodeCreatorItems,
} from '../composables/workflow';
import { IF_NODE_NAME } from '../constants';
import { NodeCreator } from '../pages/features/node-creator';
import { NDV } from '../pages/ndv';
Expand Down Expand Up @@ -515,11 +520,7 @@ describe('Node Creator', () => {

nodeCreatorFeature.actions.openNodeCreator();

nodeCreatorFeature.getters
.searchBar()
.find('input')
.clear()
.type('Vector Store');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('Vector Store');

getNodeCreatorItems().then((items) => {
const vectorStores = items.map((_i, el) => el.innerText);
Expand All @@ -533,14 +534,14 @@ describe('Node Creator', () => {
cy.realPress('ArrowLeft');
});
});
})
});

it('should add node directly for sub-connection', () => {
addNodeToCanvas('Question and Answer Chain', true);
addRetrieverNodeToParent('Vector Store Retriever', 'Question and Answer Chain');
cy.realPress('Escape')
cy.realPress('Escape');
addVectorStoreNodeToParent('In-Memory Vector Store', 'Vector Store Retriever');
cy.realPress('Escape')
cy.realPress('Escape');
WorkflowPage.getters.canvasNodes().should('have.length', 4);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const telemetry = useTelemetry();
const { actions } = useNodeCreatorStore();
const { getAddedNodesAndConnections } = useActions();
const { isAiSubcategoryView, activeViewStack } = useViewStacks();
const { activeViewStack } = useViewStacks();
const { isSubNodeType } = useNodeType({
nodeType: props.nodeType,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const uiStore = useUIStore();
const rootStore = useRootStore();
const { mergedNodes, actions } = useNodeCreatorStore();
const { pushViewStack, popViewStack, isAiSubcategoryView } = useViewStacks();
const { pushViewStack, popViewStack } = useViewStacks();
const { registerKeyHook } = useKeyboardNavigation();
Expand Down

0 comments on commit 3ae319a

Please sign in to comment.