Skip to content

Commit b49020b

Browse files
committed
debug flaky test fix
1 parent c127846 commit b49020b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ describe('Langchain Integration', () => {
372372
getNodes().should('have.length', 3);
373373
});
374374

375-
it('should render runItems for sub-nodes and allow switching between them', () => {
375+
it.only('should render runItems for sub-nodes and allow switching between them', () => {
376376
const workflowPage = new WorkflowPage();
377377

378378
cy.visit(workflowPage.url);
@@ -391,7 +391,13 @@ describe('Langchain Integration', () => {
391391
workflowPage.actions.openNode('Character Text Splitter');
392392

393393
// Wait for the input panel to switch to Debugging mode
394-
ndv.getInputPanelItemsCount().should('not.exist');
394+
// ndv
395+
// .getInputPanel()
396+
// .find('[data-test-id="input-panel-mode"] label')
397+
// .contains('Debugging')
398+
// .parent()
399+
// .should('have.a.property', 'aria-checked', 'true');
400+
// ndv.getInputPanelItemsCount().should('not.exist');
395401

396402
ndv.getOutputRunSelector().should('exist');
397403
ndv.getInputRunSelector().should('exist');

0 commit comments

Comments
 (0)