Skip to content

Commit

Permalink
[ML] Anomaly Detection: ensure 'Category examples' tab in the expande…
Browse files Browse the repository at this point in the history
…d table row can be seen (#70241) (#70323)

* remove space from tab id

* update test
  • Loading branch information
alvarezmelissa87 authored Jun 30, 2020
1 parent 7b862ee commit 6838eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class AnomalyDetails extends Component {
),
},
{
id: 'Category examples',
id: 'category-examples',
name: i18n.translate('xpack.ml.anomaliesTable.anomalyDetails.categoryExamplesTitle', {
defaultMessage: 'Category examples',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('AnomalyDetails', () => {
tabIndex: 1,
};
const wrapper = shallowWithIntl(<AnomalyDetails {...categoryTabProps} />);
expect(wrapper.prop('initialSelectedTab').id).toBe('Category examples');
expect(wrapper.prop('initialSelectedTab').id).toBe('category-examples');
});

test('Renders with terms and regex when definition prop is not undefined', () => {
Expand Down

0 comments on commit 6838eff

Please sign in to comment.