Skip to content

Commit

Permalink
Add functional test of management overview page
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <ihailong@amazon.com>
  • Loading branch information
Hailong-am committed Aug 3, 2023
1 parent e9bc28d commit b03755e
Showing 1 changed file with 24 additions and 0 deletions.
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');
});
});

0 comments on commit b03755e

Please sign in to comment.