diff --git a/ui/cypress/index.d.ts b/ui/cypress/index.d.ts index d971c49bdd..d16a4f0c8e 100644 --- a/ui/cypress/index.d.ts +++ b/ui/cypress/index.d.ts @@ -9,7 +9,7 @@ import { getByDataTest, getByInputName, getByTitle, - createTask + createTask, } from './support/commands' declare global { diff --git a/ui/cypress/support/commands.ts b/ui/cypress/support/commands.ts index ef946dc029..477e409fab 100644 --- a/ui/cypress/support/commands.ts +++ b/ui/cypress/support/commands.ts @@ -43,8 +43,10 @@ export const createBucket = (): Cypress.Chainable => { }) } -export const createTask = (orgID?: string): Cypress.Chainable => { - const flux = `option task = { +export const createTask = ( + orgID?: string +): Cypress.Chainable => { + const flux = `option task = { name: "🦄ask", every: 1d, offset: 20m @@ -57,12 +59,11 @@ export const createTask = (orgID?: string): Cypress.Chainable url: '/api/v2/tasks', body: { flux, - orgID - } + orgID, + }, }) } - export const createSource = ( orgID?: string ): Cypress.Chainable => {