chore(cypress): rename "flush" to "toInitialState"
parent
68ee8e7fe5
commit
9fcd9b579d
|
@ -25,7 +25,7 @@ import {
|
|||
createInfluxDB,
|
||||
deleteInfluxDB,
|
||||
deleteInfluxDBs,
|
||||
flush,
|
||||
toInitialState,
|
||||
writePoints
|
||||
} from './support/commands'
|
||||
|
||||
|
@ -56,7 +56,7 @@ declare global {
|
|||
createInfluxDB: typeof createInfluxDB
|
||||
deleteInfluxDB: typeof deleteInfluxDB
|
||||
deleteInfluxDBs: typeof deleteInfluxDBs
|
||||
flush: typeof flush
|
||||
toInitialState: typeof toInitialState
|
||||
writePoints: typeof writePoints
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ describe('Use Admin tab', () => {
|
|||
let sourceId: string
|
||||
|
||||
beforeEach(() => {
|
||||
cy.flush()
|
||||
cy.toInitialState()
|
||||
cy.createInfluxDBConnection()
|
||||
cy.get('@connections').then(sources => {
|
||||
sourceId = sources[0].id
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe('Use Dashboards', () => {
|
||||
beforeEach(() => {
|
||||
cy.flush()
|
||||
cy.toInitialState()
|
||||
cy.createInfluxDBConnection()
|
||||
cy.visit('/login')
|
||||
cy.get('@connections').then(connections => {
|
||||
|
|
|
@ -2,7 +2,7 @@ describe('query builder', () => {
|
|||
let influxDB: any
|
||||
|
||||
beforeEach(() => {
|
||||
cy.flush()
|
||||
cy.toInitialState()
|
||||
cy.createInfluxDBConnection()
|
||||
cy.createDashboard()
|
||||
cy.get('@connections').then((sources: any) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
describe('Welcome Page', () => {
|
||||
beforeEach(() => {
|
||||
cy.flush()
|
||||
cy.toInitialState()
|
||||
cy.OAuthLogout()
|
||||
})
|
||||
|
||||
|
|
|
@ -546,7 +546,7 @@ function wrapChronografUsers() {
|
|||
/**
|
||||
* Set application to a default state.
|
||||
*/
|
||||
export function flush() {
|
||||
export function toInitialState() {
|
||||
cy.OAuthLogin('test')
|
||||
cy.visit('/')
|
||||
cy.request({
|
||||
|
@ -590,5 +590,5 @@ Cypress.Commands.add('deleteInfluxDBRoles', deleteInfluxDBRoles)
|
|||
Cypress.Commands.add('createInfluxDB', createInfluxDB)
|
||||
Cypress.Commands.add('deleteInfluxDB', deleteInfluxDB)
|
||||
Cypress.Commands.add('deleteInfluxDBs', deleteInfluxDBs)
|
||||
Cypress.Commands.add('flush', flush)
|
||||
Cypress.Commands.add('toInitialState', toInitialState)
|
||||
Cypress.Commands.add('writePoints', writePoints)
|
||||
|
|
Loading…
Reference in New Issue