-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functional test of management overview page
Signed-off-by: Hailong Cui <ihailong@amazon.com>
- Loading branch information
1 parent
e9bc28d
commit b03755e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...arch-dashboards/opensearch-dashboards/managment_overview_plugin/1_render_overview.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { BASE_PATH } from '../../../../utils/base_constants'; | ||
|
||
describe('Management overview rendering', () => { | ||
it('should show dev tools', function () { | ||
cy.visit(`${BASE_PATH}/app/opensearch_management_overview`); | ||
|
||
cy.getElementByTestId('link-dev_tools').should('exist').click(); | ||
|
||
cy.url().should('contain', '/app/dev_tools'); | ||
}); | ||
|
||
it('should show dashboard management', function () { | ||
cy.visit(`${BASE_PATH}/app/opensearch_management_overview`); | ||
|
||
cy.getElementByTestId('link-management').should('exist').click(); | ||
|
||
cy.url().should('contain', '/app/management'); | ||
}); | ||
}); |