chronograf/ui/cypress/support/commands.ts

255 lines
6.6 KiB
TypeScript
Raw Normal View History

import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
declare namespace Cypress {
interface Chainable<Subject> {
/**
* Custom command to match image snapshots.
* @example cy.matchImageSnapshot('greeting')
*/
matchImageSnapshot(snapshotName?: string): void
}
}
// Set up the settings
addMatchImageSnapshotCommand({
customSnapshotsDir: '../ui/cypress/snapshots',
failureThreshold: 0.75, // threshold for entire image
failureThresholdType: 'percent', // percent of image or number of pixels
customDiffConfig: { threshold: 0.75 }, // threshold for each pixel
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
capture: 'viewport', // capture viewport in screenshot
})
Cypress.Commands.overwrite(
'matchImageSnapshot',
(originalFn, snapshotName, options) => {
if (Cypress.env('ALLOW_SCREENSHOT')) {
originalFn(snapshotName, options)
} else {
cy.log(`Screenshot comparison is disabled`)
}
}
)
export const getByTestID = (
dataTest: string,
options?: Partial<
Cypress.Loggable & Cypress.Timeoutable & Cypress.Withinable & Cypress.Shadow
>
): globalThis.Cypress.Chainable<JQuery<HTMLElement>> => {
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
return cy.get(`[data-test="${dataTest}"]`, options)
}
// Function sends HTTP POST request to OAuth2 Mock server in order to change user information
const changeUserInfo: Function = (name: string): void => {
const xhttp: XMLHttpRequest = new XMLHttpRequest()
const url: string = Cypress.env('oauth2ServerURL') + '/config'
const body = {
"userinfo": {
"name": name,
"email": name + "@oauth2.mock"
}
}
xhttp.open('POST', url)
xhttp.setRequestHeader('Content-Type', 'application/json')
xhttp.send(JSON.stringify(body))
}
export const OAuthLogin = (name: string) => {
changeUserInfo(name)
return cy.visit('/oauth/oauth-mock/login')
}
export const OAuthLogout = () => {
return cy.visit('/oauth/oauth-mock/logout')
}
export const OAuthLoginAsDiffUser = (name: string) => {
2022-04-28 11:38:16 +00:00
changeUserInfo(name)
2022-04-28 13:17:14 +00:00
return cy.visit('/oauth/oauth-mock/logout')
}
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
// Change enviromental values in cypress.json
export const createConnection = (url?: string) => {
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
return cy
.request({
method: 'POST',
url: '/chronograf/v1/sources',
body: {
url: url ?? Cypress.env('influxDBURL'),
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
username: Cypress.env('username'),
password: Cypress.env('password'),
name: Cypress.env('connectionName'),
insecureSkipVerify: Cypress.env('insecureSkipVerify'),
},
})
.then(() => {
wrapConnections()
})
}
export const removeConnections = () => {
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
return cy.request('GET', '/chronograf/v1/sources').then(response => {
response.body.sources.forEach(connection => {
cy.request('DELETE', `${connection.links.self}`)
})
})
.then(() => {
wrapConnections()
})
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
}
export const createDashboard = (name?: string) => {
return cy
.fixture('routes').then(({ dashboards }) => {
return cy
.request({
method: 'POST',
url: `/chronograf/v1${dashboards}`,
body: {
name: name ?? 'Default Dashboard',
},
})
.then(() => {
wrapDashboards()
})
})
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
}
export const deleteDashboards = () => {
return cy
.request('GET', '/chronograf/v1/dashboards')
.then(({ body: response }) => {
response.dashboards.forEach(dashboard => {
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
cy.request('DELETE', `${dashboard.links.self}`)
})
})
.then(() => {
wrapDashboards()
})
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
}
export const createDashboardWithCell = (
query?: string,
dashboardName?: string,
cellName?: string,
xPosition?: number,
yPosition?: number,
cellWidth?: number,
cellHeight?: number,
) => {
return cy
.request({
method: 'POST',
url: `/chronograf/v1/dashboards/`,
body: {
"cells": [
{
"x": xPosition ?? 0,
"y": yPosition ?? 0,
"w": cellWidth ?? 8,
"h": cellHeight ?? 4,
"name": cellName ?? "Unnamed Cell",
"queries": [
{
"query": query,
"db": Cypress.env('connectionName'),
"label": "%",
}
]
}
],
name: dashboardName ?? "Unnamed Dashboard"
}
})
}
export const createUser = (
userName: string,
provider: string,
scheme: string,
organization?: string,
role?: string
) => {
return cy.request({
method: 'POST',
url: '/chronograf/v1/users',
body: {
"name": userName + "@oauth2.mock",
"provider": provider,
"roles": [{
"name": role ?? "reader",
"organization": organization ?? "default"
}],
"scheme": scheme,
}
})
}
export const deleteUser = (name: string) => {
const userName = name + '@oauth2.mock'
return cy
.request('GET', '/chronograf/v1/users')
.then(({ body: response }) => {
response.users.forEach(user => {
if (userName == user.name) {
cy.request('DELETE', user.links.self)
}
})
})
}
export const createOrg = (orgName: string, defaultRole: string) => {
return cy.request({
method: 'POST',
url: '/chronograf/v1/organizations',
body: {
"defaultRole": defaultRole,
"name": orgName
}
})
.then(() => {
wrapOrgs()
})
}
export const deleteOrg = (id: string) => {
return cy.request('DELETE', `/chronograf/v1/organizations/${id}`)
}
function wrapConnections() {
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
return cy
.request({
method: 'GET',
url: '/chronograf/v1/sources',
})
.then(({ body: response }) => {
const connections = response.sources
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
cy.wrap(connections).as('connections')
})
}
function wrapDashboards() {
return cy.request('GET', '/chronograf/v1/dashboards').then(({ body: response }) => {
cy.wrap(response.dashboards).as('dashboards')
})
}
function wrapOrgs() {
return cy.request('GET', '/chronograf/v1/organizations').then(({ body: response }) => {
cy.wrap(response.organizations).as('orgs')
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
})
}
Cypress.Commands.add('getByTestID', getByTestID)
Cypress.Commands.add('createConnection', createConnection)
Cypress.Commands.add('removeConnections', removeConnections)
Cypress tests and e2e github action flow (#5896) * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * fix: name of dropdown toggle * test: connecting to influxdb * fix: remove unnecessary influxdb-onboarding.sh script. * chore: updated go 1.17.1 for cypress tests * refactor: remove unnecessary influxdb-onboarding command from Makefile * refactor: remove unnecessary influxdb-onboarding command from circleci config * test: initialising database by using environment properties (in Makefile) * chore: fixing cypress tests * test: deleting connection to influxd1 * tests: optimize build, reuse workspace * tests: optimize build * test: remove unused code * fix: remove unuse dashboard * chore(e2e-pipeline): add pipeline for chrono cypress tests * chore: run action on push * chore: fix e2e pipeline * chore: add yarn install * chore: add log upload * chore: show logs to see what is going on with chronograf * chore: fix log cats * chore: add sleep * fix: chronograf run command * chore(ui): regenerate yarn.lock after rebase * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore(e2e): local script for influxdb enterprise deployment * chore(e2e): update cert-manager in actions pipeline * chore: fix coredns issue * chore: fix certmanager deployment * test: welcome test, dashboard test, explore browser test * test: snapshot testing * feat: adding testing snapshots * chore: update unmet peer dependency * test(cypress): add cypress env, and commands * test(cypress): add basic InfluxDB setup connection test * fix: temporary commented out the file as it uses non existing functions * test(cypress): add dashboard create, rename and delelete test * test(cypress): add routes * chore: regenerate yarn.lock * chore: remove unused file * chore: comment out code * chore: comment out code * fix: remove calling non-existent function * fix: createConnection uses unsafe SSL * turns on flux * test(cypress): rewritten Query Builder tests using _internal.monitor * chore: yarn prettier * fix: add missing custom window period * fix: remove it.only * Add flux-enable to a workflow file * fix: github actions workflow file flux-enabled * fix: force restart by deleing pod * fix: restart a container to apply a new configmap * fix: restart container * chore: flux-enabled is now true by default * fix: selecting correct elements * chore: update e2e pipeline * chore: add scheduled action run once a working day * chore: remove commented code * chore: change file extenction to .ts and adjust code accordingly * chore: pipeline fixes * chore: clean up e2e:influxdb2 references * fix: yarn installation, no risky changes in make clean * chore: update changelog Co-authored-by: Iszy-Ami <huyiktran@gmail.com> Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com> Co-authored-by: Robert Hajek <robert.hajek@gmail.com> Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io> Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com> Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 08:27:29 +00:00
Cypress.Commands.add('createDashboard', createDashboard)
Cypress.Commands.add('deleteDashboards', deleteDashboards)
Cypress.Commands.add('createDashboardWithCell', createDashboardWithCell)
Cypress.Commands.add('OAuthLogin', OAuthLogin)
Cypress.Commands.add('OAuthLogout', OAuthLogout)
Cypress.Commands.add('OAuthLoginAsDiffUser', OAuthLoginAsDiffUser)
Cypress.Commands.add('createUser', createUser)
Cypress.Commands.add('deleteUser', deleteUser)
Cypress.Commands.add('createOrg', createOrg)
Cypress.Commands.add('deleteOrg', deleteOrg)