From 1307d488b9b77299913a0407bb2a82152362b410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Fri, 13 Oct 2023 12:30:45 +0200 Subject: [PATCH] fix: Fix flaky remote options loading test (no-changelog) (#7433) Background: Looks like remote options loading needs a bit of time to catch up when dependent parameter changes so when using cypress `type` method without delay it fails to update the values properly. Since this does not represent actual component behavior when real user interact with it we added a delay to automated typing. This PR increases typing delay, giving the component more time to breathe when run in CI - [Latest e2e run](https://github.com/n8n-io/n8n/actions/runs/6506583716) - [Video of this specific test](https://cloud.cypress.io/projects/5hbsdn/runs/aa4f1a7d-b95f-4c8a-acd6-33061d290c7b/test-results/21a1abdf-1e1c-43bf-a640-8cc39b11cc46/video) --- cypress/e2e/5-ndv.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/5-ndv.cy.ts b/cypress/e2e/5-ndv.cy.ts index 1f34cee5c6..956d6470f5 100644 --- a/cypress/e2e/5-ndv.cy.ts +++ b/cypress/e2e/5-ndv.cy.ts @@ -297,7 +297,7 @@ describe('NDV', () => { ndv.getters.parameterInput('remoteOptions').click(); getVisibleSelect().find('.el-select-dropdown__item').should('have.length', 3); - ndv.actions.setInvalidExpression({ fieldName: 'fieldId', delay: 100 }); + ndv.actions.setInvalidExpression({ fieldName: 'fieldId', delay: 200 }); ndv.getters.container().click(); // remove focus from input, hide expression preview