Skip to content

Commit 96fff27

Browse files
committed
fix: wait for the input panel switch to debugging mode
1 parent ab5d174 commit 96fff27

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cypress/composables/ndv.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export function getInputRunSelector() {
7676
return getInputPanel().findChildByTestId('run-selector');
7777
}
7878

79+
export function getInputPanelItemsCount() {
80+
return getInputPanel().getByTestId('ndv-items-count');
81+
}
82+
7983
export function getOutputPanelDataContainer() {
8084
return getOutputPanel().findChildByTestId('ndv-data-container');
8185
}

cypress/e2e/30-langchain.cy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import {
2929
getRunDataInfoCallout,
3030
getOutputPanelTable,
3131
checkParameterCheckboxInputByName,
32+
getOutputPanelItemsCount,
33+
getInputPanelItemsCount,
3234
} from '../composables/ndv';
3335
import * as workflow from '../composables/workflow';
3436
import {
@@ -389,6 +391,10 @@ describe('Langchain Integration', () => {
389391
};
390392

391393
workflowPage.actions.openNode('Character Text Splitter');
394+
395+
// Wait for the input panel to switch to Debugging mode
396+
ndv.getInputPanelItemsCount().should('not.exist');
397+
392398
ndv.getOutputRunSelector().should('exist');
393399
ndv.getInputRunSelector().should('exist');
394400
ndv.getInputRunSelector().find('input').should('include.value', '3 of 3');

0 commit comments

Comments
 (0)