Skip to content

Commit 0837932

Browse files
committed
fix: replace chained cypress getters with single selectors
1 parent 59e2aad commit 0837932

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cypress/composables/ndv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function getInputTbodyCell(row: number, col: number) {
7373
}
7474

7575
export function getInputRunSelector() {
76-
return getInputPanel().findChildByTestId('run-selector');
76+
return cy.get('[data-test-id="ndv-input-panel"] [data-test-id="run-selector"]');
7777
}
7878

7979
export function getInputPanelItemsCount() {
@@ -105,7 +105,7 @@ export function getOutputTbodyCell(row: number, col: number) {
105105
}
106106

107107
export function getOutputRunSelector() {
108-
return getOutputPanel().findChildByTestId('run-selector');
108+
return cy.get('[data-test-id="output-panel"] [data-test-id="run-selector"]');
109109
}
110110

111111
export function getOutputRunSelectorInput() {

cypress/e2e/30-langchain.cy.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ describe('Langchain Integration', () => {
390390

391391
workflowPage.actions.openNode('Character Text Splitter');
392392

393-
// Wait for the input panel to switch to Debugging mode
394-
ndv.getInputPanelItemsCount().should('not.exist');
395-
396393
ndv.getOutputRunSelector().should('exist');
397394
ndv.getInputRunSelector().should('exist');
398395
ndv.getInputRunSelector().find('input').should('include.value', '3 of 3');

0 commit comments

Comments
 (0)