Skip to content

Commit

Permalink
[Multiple Datasource Test]add more test for icon and aggregated view (o…
Browse files Browse the repository at this point in the history
…pensearch-project#6729)

* add more test for icon and aggregated view

Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>

* Changeset file for PR opensearch-project#6729 created/updated

* Update CHANGELOG.md

---------

Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
  • Loading branch information
yujin-emma and opensearch-changeset-bot[bot] committed May 16, 2024
1 parent 620d852 commit 077298f
Show file tree
Hide file tree
Showing 7 changed files with 1,278 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/6729.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Add more test for icon and aggregated view ([#6729](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6729))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { shallow } from 'enzyme';
import React from 'react';
import { EmptyIcon } from './empty_icon';

describe('Test on empty icon', () => {
it('should render the component normally', () => {
const component = shallow(<EmptyIcon />);
expect(component).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { shallow } from 'enzyme';
import React from 'react';
import { ErrorIcon } from './error_icon';

describe('Test on empty icon', () => {
it('should render the component normally', () => {
const component = shallow(<ErrorIcon />);
expect(component).toMatchSnapshot();
});
});
Loading

0 comments on commit 077298f

Please sign in to comment.