diff options
Diffstat (limited to 'spec/frontend/clusters_list/components/install_agent_modal_spec.js')
-rw-r--r-- | spec/frontend/clusters_list/components/install_agent_modal_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/frontend/clusters_list/components/install_agent_modal_spec.js b/spec/frontend/clusters_list/components/install_agent_modal_spec.js index 38f653509a8..29884675b24 100644 --- a/spec/frontend/clusters_list/components/install_agent_modal_spec.js +++ b/spec/frontend/clusters_list/components/install_agent_modal_spec.js @@ -15,6 +15,7 @@ import { EVENT_ACTIONS_SELECT, MODAL_TYPE_EMPTY, MODAL_TYPE_REGISTER, + INSTALL_AGENT_MODAL_ID, } from '~/clusters_list/constants'; import getAgentsQuery from '~/clusters_list/graphql/queries/get_agents.query.graphql'; import getAgentConfigurations from '~/clusters_list/graphql/queries/agent_configurations.query.graphql'; @@ -222,7 +223,11 @@ describe('InstallAgentModal', () => { }); it('shows agent instructions', () => { - expect(findAgentInstructions().exists()).toBe(true); + expect(findAgentInstructions().props()).toMatchObject({ + agentName: 'agent-name', + agentToken: 'mock-agent-token', + modalId: INSTALL_AGENT_MODAL_ID, + }); }); describe('error creating agent', () => { |