diff --git a/ui/packages/tidb-dashboard-for-op/cypress/integration/topsql/topsql.without_ngm_spec.js b/ui/packages/tidb-dashboard-for-op/cypress/integration/topsql/topsql.without_ngm_spec.js index de089d4833..de761cf19e 100644 --- a/ui/packages/tidb-dashboard-for-op/cypress/integration/topsql/topsql.without_ngm_spec.js +++ b/ui/packages/tidb-dashboard-for-op/cypress/integration/topsql/topsql.without_ngm_spec.js @@ -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') + }) }) }) })