diff options
Diffstat (limited to 'spec/frontend/packages_and_registries/infrastructure_registry/components')
3 files changed, 5 insertions, 15 deletions
diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/__snapshots__/packages_list_app_spec.js.snap b/spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/__snapshots__/packages_list_app_spec.js.snap index a33528d2d91..801cde8582e 100644 --- a/spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/__snapshots__/packages_list_app_spec.js.snap +++ b/spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/__snapshots__/packages_list_app_spec.js.snap @@ -30,6 +30,7 @@ exports[`packages_list_app renders 1`] = ` <div class="gl-max-w-full gl-m-auto" + data-testid="gl-empty-state-content" > <div class="gl-mx-auto gl-my-0 gl-p-5" diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/actions_spec.js b/spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/actions_spec.js index 36417eaf793..2c185e040f4 100644 --- a/spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/actions_spec.js +++ b/spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/actions_spec.js @@ -3,6 +3,7 @@ import MockAdapter from 'axios-mock-adapter'; import testAction from 'helpers/vuex_action_helper'; import Api from '~/api'; import { createAlert } from '~/flash'; +import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import { MISSING_DELETE_PATH_ERROR } from '~/packages_and_registries/infrastructure_registry/list/constants'; import * as actions from '~/packages_and_registries/infrastructure_registry/list/stores/actions'; import * as types from '~/packages_and_registries/infrastructure_registry/list/stores/mutation_types'; @@ -182,7 +183,7 @@ describe('Actions Package list store', () => { }, }; it('should perform a delete operation on _links.delete_api_path', () => { - mock.onDelete(payload._links.delete_api_path).replyOnce(200); + mock.onDelete(payload._links.delete_api_path).replyOnce(HTTP_STATUS_OK); Api.projectPackages = jest.fn().mockResolvedValue({ data: 'foo' }); return testAction( @@ -198,7 +199,7 @@ describe('Actions Package list store', () => { }); it('should stop the loading and call create flash on api error', async () => { - mock.onDelete(payload._links.delete_api_path).replyOnce(400); + mock.onDelete(payload._links.delete_api_path).replyOnce(HTTP_STATUS_BAD_REQUEST); await testAction( actions.requestDeletePackage, payload, diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/shared/__snapshots__/package_list_row_spec.js.snap b/spec/frontend/packages_and_registries/infrastructure_registry/components/shared/__snapshots__/package_list_row_spec.js.snap index 91824dee5b0..08e2de6c18f 100644 --- a/spec/frontend/packages_and_registries/infrastructure_registry/components/shared/__snapshots__/package_list_row_spec.js.snap +++ b/spec/frontend/packages_and_registries/infrastructure_registry/components/shared/__snapshots__/package_list_row_spec.js.snap @@ -101,18 +101,6 @@ exports[`packages_list_row renders 1`] = ` </div> </div> - <div - class="gl-display-flex" - > - <div - class="gl-w-7" - /> - - <!----> - - <div - class="gl-w-9" - /> - </div> + <!----> </div> `; |