diff options
Diffstat (limited to 'spec/frontend/clusters/agents/components/show_spec.js')
-rw-r--r-- | spec/frontend/clusters/agents/components/show_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/clusters/agents/components/show_spec.js b/spec/frontend/clusters/agents/components/show_spec.js index f2f073544e3..efa85136b17 100644 --- a/spec/frontend/clusters/agents/components/show_spec.js +++ b/spec/frontend/clusters/agents/components/show_spec.js @@ -6,6 +6,7 @@ import { extendedWrapper } from 'helpers/vue_test_utils_helper'; import ClusterAgentShow from '~/clusters/agents/components/show.vue'; import TokenTable from '~/clusters/agents/components/token_table.vue'; import ActivityEvents from '~/clusters/agents/components/activity_events_list.vue'; +import IntegrationStatus from '~/clusters/agents/components/integration_status.vue'; import getAgentQuery from '~/clusters/agents/graphql/queries/get_cluster_agent.query.graphql'; import { useFakeDate } from 'helpers/fake_date'; import createMockApollo from 'helpers/mock_apollo_helper'; @@ -76,6 +77,7 @@ describe('ClusterAgentShow', () => { const findTokenCount = () => wrapper.findByTestId('cluster-agent-token-count').text(); const findEESecurityTabSlot = () => wrapper.findByTestId('ee-security-tab'); const findActivity = () => wrapper.findComponent(ActivityEvents); + const findIntegrationStatus = () => wrapper.findComponent(IntegrationStatus); afterEach(() => { wrapper.destroy(); @@ -107,6 +109,10 @@ describe('ClusterAgentShow', () => { expect(findCreatedText()).toMatchInterpolatedText('Created by user-1 2 days ago'); }); + it('displays agent integration status section', () => { + expect(findIntegrationStatus().exists()).toBe(true); + }); + it('displays token count', () => { expect(findTokenCount()).toMatchInterpolatedText( `${ClusterAgentShow.i18n.tokens} ${defaultClusterAgent.tokens.count}`, |