diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-07 03:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-07 03:09:08 +0300 |
commit | 83cd5db43517cfd977b0d288b179f794677ba1a7 (patch) | |
tree | 102dc755ceddb8aebd4cbc81cd4720ef6da90314 /spec/frontend/clusters | |
parent | 1f563de51470eaf2aa44e71046398127c00bcfe3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
-rw-r--r-- | spec/frontend/clusters/agents/components/create_token_button_spec.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/frontend/clusters/agents/components/create_token_button_spec.js b/spec/frontend/clusters/agents/components/create_token_button_spec.js index b9a3a851e57..fb1a3aa2963 100644 --- a/spec/frontend/clusters/agents/components/create_token_button_spec.js +++ b/spec/frontend/clusters/agents/components/create_token_button_spec.js @@ -11,6 +11,7 @@ import { TOKEN_NAME_LIMIT, TOKEN_STATUS_ACTIVE, MAX_LIST_COUNT, + CREATE_TOKEN_MODAL, } from '~/clusters/agents/constants'; import createNewAgentToken from '~/clusters/agents/graphql/mutations/create_new_agent_token.mutation.graphql'; import getClusterAgentQuery from '~/clusters/agents/graphql/queries/get_cluster_agent.query.graphql'; @@ -231,7 +232,11 @@ describe('CreateTokenButton', () => { }); it('shows agent instructions', () => { - expect(findAgentInstructions().exists()).toBe(true); + expect(findAgentInstructions().props()).toMatchObject({ + agentName, + agentToken: 'token-secret', + modalId: CREATE_TOKEN_MODAL, + }); }); it('renders a close button', () => { |