diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 431fca3328..b991aaff1d 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -820,6 +820,12 @@ const setScriptToLanguage = ( defaultEditorText: string ) => { return cy.isIoxOrg().then(isIox => { + if (lang === 'influxql') { + // give cypress some time to set up + // database and retetion policy (DBRP) mappings + cy.wait(1000) + } + // influxql works on both IOx and TSM if (isIox || lang === 'influxql') { cy.getByTestID('script-query-builder--new-script')