Skip to content

Commit

Permalink
chore(test): add some time for influxql to set up dbrp
Browse files Browse the repository at this point in the history
  • Loading branch information
appletreeisyellow committed Sep 25, 2023
1 parent e8d8f68 commit c1b4ec1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c1b4ec1

Please sign in to comment.