-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
30 changes: 16 additions & 14 deletions
30
ui/packages/tidb-dashboard-for-op/cypress/integration/topsql/topsql.without_ngm_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
}) | ||
}) | ||
}) | ||
}) |