Skip to content

Commit

Permalink
fix 5.0.0 e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
SabaPing committed Nov 11, 2022
1 parent c971192 commit d4552e2
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
// Copyright 2022 PingCAP, Inc. Licensed under Apache-2.0.

describe('TopSQL without ngm', function () {
before(() => {
cy.fixture('uri.json').then((uri) => (this.uri = uri))
})
skipOn(Cypress.env('FEATURE_VERSION') !== '5.0.0', () => {
before(() => {
cy.fixture('uri.json').then((uri) => (this.uri = uri))
})

beforeEach(() => {
cy.login('root')
beforeEach(() => {
cy.login('root')

cy.visit(this.uri.topsql)
})
cy.visit(this.uri.topsql)
})

describe('Ngm not deployed', () => {
it('show global notification about ngm not deployed', () => {
cy.get('.ant-notification-notice-message').should(
'contain',
'System Health Check Failed'
)
describe('Ngm not deployed', () => {
it('show global notification about ngm not deployed', () => {
cy.get('.ant-notification-notice-message').should(
'contain',
'System Health Check Failed'
)

cy.get('[data-e2e="ngm_not_started"]').should('exist')
cy.get('[data-e2e="ngm_not_started"]').should('exist')
})
})
})
})

0 comments on commit d4552e2

Please sign in to comment.