diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-03 18:12:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-03 18:12:58 +0300 |
commit | 27a5080c34c64a84219d855d652b994c5e344a0a (patch) | |
tree | 1f6bcb68378e4965b4e93a846d8a939af18aeec6 /spec/frontend/clusters | |
parent | 2c01907a1ab4b328e2f20ddf9e10dfe6dc17105a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
3 files changed, 4 insertions, 4 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 5a8906813cf..2bbde33d6f4 100644 --- a/spec/frontend/clusters/agents/components/create_token_button_spec.js +++ b/spec/frontend/clusters/agents/components/create_token_button_spec.js @@ -55,7 +55,7 @@ describe('CreateTokenButton', () => { }); it('disabled the button', () => { - expect(findButton().attributes('disabled')).toBe('true'); + expect(findButton().attributes('disabled')).toBeDefined(); }); it('shows a disabled tooltip', () => { diff --git a/spec/frontend/clusters/agents/components/create_token_modal_spec.js b/spec/frontend/clusters/agents/components/create_token_modal_spec.js index fe3e1844118..f0fded7b7b2 100644 --- a/spec/frontend/clusters/agents/components/create_token_modal_spec.js +++ b/spec/frontend/clusters/agents/components/create_token_modal_spec.js @@ -61,7 +61,7 @@ describe('CreateTokenModal', () => { const expectDisabledAttribute = (element, disabled) => { if (disabled) { - expect(element.attributes('disabled')).toBe('true'); + expect(element.attributes('disabled')).toBeDefined(); } else { expect(element.attributes('disabled')).toBeUndefined(); } diff --git a/spec/frontend/clusters/agents/components/revoke_token_button_spec.js b/spec/frontend/clusters/agents/components/revoke_token_button_spec.js index 76c32abb5e4..970782a8e58 100644 --- a/spec/frontend/clusters/agents/components/revoke_token_button_spec.js +++ b/spec/frontend/clusters/agents/components/revoke_token_button_spec.js @@ -119,7 +119,7 @@ describe('RevokeTokenButton', () => { }); it('disabled the button', () => { - expect(findRevokeBtn().attributes('disabled')).toBe('true'); + expect(findRevokeBtn().attributes('disabled')).toBeDefined(); }); it('shows a disabled tooltip', () => { @@ -217,7 +217,7 @@ describe('RevokeTokenButton', () => { it('reenables the button', async () => { expect(findPrimaryActionAttributes('loading')).toBe(true); - expect(findRevokeBtn().attributes('disabled')).toBe('true'); + expect(findRevokeBtn().attributes('disabled')).toBeDefined(); await findModal().vm.$emit('hide'); |