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/ci/artifacts/components | |
parent | 2c01907a1ab4b328e2f20ddf9e10dfe6dc17105a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/ci/artifacts/components')
3 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/ci/artifacts/components/artifact_row_spec.js b/spec/frontend/ci/artifacts/components/artifact_row_spec.js index ee5d62c2d48..96ddedc3a9d 100644 --- a/spec/frontend/ci/artifacts/components/artifact_row_spec.js +++ b/spec/frontend/ci/artifacts/components/artifact_row_spec.js @@ -106,7 +106,7 @@ describe('ArtifactRow component', () => { props: { isSelected: false, isSelectedArtifactsLimitReached: true }, }); - expect(findCheckbox().attributes('disabled')).toBe('true'); + expect(findCheckbox().attributes('disabled')).toBeDefined(); expect(findCheckbox().attributes('title')).toBe(I18N_BULK_DELETE_MAX_SELECTED); }); }); diff --git a/spec/frontend/ci/artifacts/components/job_artifacts_table_spec.js b/spec/frontend/ci/artifacts/components/job_artifacts_table_spec.js index fe58f302a1d..514644a92f2 100644 --- a/spec/frontend/ci/artifacts/components/job_artifacts_table_spec.js +++ b/spec/frontend/ci/artifacts/components/job_artifacts_table_spec.js @@ -324,7 +324,7 @@ describe('JobArtifactsTable component', () => { await waitForPromises(); - expect(findDownloadButton().attributes('disabled')).toBe('disabled'); + expect(findDownloadButton().attributes('disabled')).toBeDefined(); }); }); @@ -350,7 +350,7 @@ describe('JobArtifactsTable component', () => { await waitForPromises(); - expect(findBrowseButton().attributes('disabled')).toBe('disabled'); + expect(findBrowseButton().attributes('disabled')).toBeDefined(); }); }); @@ -463,7 +463,7 @@ describe('JobArtifactsTable component', () => { await waitForPromises(); - expect(findDeleteButton().attributes('disabled')).toBe('disabled'); + expect(findDeleteButton().attributes('disabled')).toBeDefined(); }); it('is hidden when user does not have delete permission', async () => { diff --git a/spec/frontend/ci/artifacts/components/job_checkbox_spec.js b/spec/frontend/ci/artifacts/components/job_checkbox_spec.js index 56f1d8cc47b..8b47571239c 100644 --- a/spec/frontend/ci/artifacts/components/job_checkbox_spec.js +++ b/spec/frontend/ci/artifacts/components/job_checkbox_spec.js @@ -33,7 +33,7 @@ describe('JobCheckbox component', () => { it('is disabled when the job has no artifacts', () => { createComponent({ hasArtifacts: false }); - expect(findCheckbox().attributes('disabled')).toBe('true'); + expect(findCheckbox().attributes('disabled')).toBeDefined(); }); describe('when some artifacts from this job are selected', () => { @@ -124,7 +124,7 @@ describe('JobCheckbox component', () => { it('is disabled when the selected artifacts limit has been reached', () => { // job checkbox is disabled to block further selection - expect(findCheckbox().attributes('disabled')).toBe('true'); + expect(findCheckbox().attributes('disabled')).toBeDefined(); expect(findCheckbox().attributes('title')).toBe(I18N_BULK_DELETE_MAX_SELECTED); }); }); |