From 8a52ea751c00d61f916a87dd8562ccb5228bbf28 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Fri, 14 Jun 2024 20:04:59 +0530 Subject: [PATCH 1/2] add unit test for m2m applciation --- ...minimal-application-create-wizard.test.tsx | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx diff --git a/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx b/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx new file mode 100644 index 00000000000..1a8bf2fd763 --- /dev/null +++ b/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). + * + * WSO2 LLC. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import React from "react"; +import "@testing-library/jest-dom"; +import { render, screen, waitFor } from "../../../../test-configs/utils"; +import { ApplicationManagementConstants } from "../../../constants/application-management"; +import { MinimalAppCreateWizard } from "../minimal-application-create-wizard"; + +describe("Test if the Branding page is working as expected", () => { + + it(" renders without exploding", () => { + render( + + ); + expect(screen.getByTestId("minimal-application-create-wizard")).toBeInTheDocument(); + }); +}); From f734431469389e417e3afb239b996bf9e782e488 Mon Sep 17 00:00:00 2001 From: asha15 <165079T@uom.lk> Date: Fri, 14 Jun 2024 20:08:47 +0530 Subject: [PATCH 2/2] update license header --- .../wizard/__tests__/minimal-application-create-wizard.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx b/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx index 1a8bf2fd763..8c8991faa0f 100644 --- a/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx +++ b/features/admin.applications.v1/components/wizard/__tests__/minimal-application-create-wizard.test.tsx @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). + * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except