diff --git a/x-pack/plugins/security_solution/cypress/integration/hosts/risky_hosts_kpi.spec.ts b/x-pack/plugins/security_solution/cypress/integration/hosts/risky_hosts_kpi.spec.ts index 602a9118128b5..6661e6308971f 100644 --- a/x-pack/plugins/security_solution/cypress/integration/hosts/risky_hosts_kpi.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/hosts/risky_hosts_kpi.spec.ts @@ -10,7 +10,7 @@ import { loginAndWaitForPage } from '../../tasks/login'; import { HOSTS_URL } from '../../urls/navigation'; describe('RiskyHosts KPI', () => { - it('it renders', () => { + it('renders', () => { loginAndWaitForPage(HOSTS_URL); cy.get('[data-test-subj="riskyHostsTotal"]').should('have.text', '0 Risky Hosts'); diff --git a/x-pack/plugins/security_solution/public/common/components/hover_visibility_container/index.test.tsx b/x-pack/plugins/security_solution/public/common/components/hover_visibility_container/index.test.tsx new file mode 100644 index 0000000000000..80b145791ba43 --- /dev/null +++ b/x-pack/plugins/security_solution/public/common/components/hover_visibility_container/index.test.tsx @@ -0,0 +1,54 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { mount } from 'enzyme'; +import React from 'react'; + +import { TestProviders } from '../../mock'; + +import { HoverVisibilityContainer } from '.'; + +describe('HoverVisibilityContainer', () => { + const targetClass1 = 'Component1'; + const targetClass2 = 'Component2'; + const Component1 = () =>
; + const Component2 = () => ; + + test('it renders a transparent inspect button by default', () => { + const wrapper = mount( +{i18n.INTRODUCTION}
+{i18n.EXPLANATION_MESSAGE}
+