Skip to content

Commit

Permalink
Update middleware update notification (#7599)
Browse files Browse the repository at this point in the history
  • Loading branch information
rash-27 authored Apr 24, 2024
1 parent 9b9f744 commit aee0050
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cypress/e2e/facility_spec/facility_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ describe("Facility Creation", () => {
facilityPage.clickConfigureFacilityOption();
facilityPage.fillMiddleWareAddress("dev_middleware.coronasafe.live");
facilityPage.clickupdateMiddleWare();
facilityPage.verifySuccessNotification("Facility updated successfully");
facilityPage.verifySuccessNotification(
"Facility middleware updated successfully"
);
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/facility_spec/facility_manage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("Facility Manage Functions", () => {
const facilityMiddleware = "dev-middleware.coronasafe.live";
const facilityUpdatedMiddleware = "updated.coronasafe.live";
const facilityMiddlewareSuccessfullNotification =
"Facility updated successfully";
"Facility middleware updated successfully";
const facilityHfridUpdateButton = "Link Health Facility";
const facilityHfridToastNotificationText =
/Health Facility config updated successfully|Health ID registration failed/;
Expand Down
3 changes: 2 additions & 1 deletion src/Components/Facility/FacilityConfigure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import useQuery from "../../Utils/request/useQuery";
import routes from "../../Redux/api";
import request from "../../Utils/request/request";
import { FieldChangeEvent } from "../Form/FormFields/Utils.js";
import { t } from "i18next";
const Loading = lazy(() => import("../Common/Loading"));

const initForm = {
Expand Down Expand Up @@ -109,7 +110,7 @@ export const FacilityConfigure = (props: IProps) => {
setIsLoading(false);
if (res?.ok) {
Notification.Success({
msg: "Facility updated successfully",
msg: t("update_facility_middleware_success"),
});
navigate(`/facility/${facilityId}`);
} else {
Expand Down
3 changes: 2 additions & 1 deletion src/Locale/en/Facility.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
"create_asset": "Create Asset",
"create_add_more": "Create & Add More",
"discharged_patients": "Discharged Patients",
"discharged_patients_empty": "No discharged patients present in this facility"
"discharged_patients_empty": "No discharged patients present in this facility",
"update_facility_middleware_success":"Facility middleware updated successfully"
}

0 comments on commit aee0050

Please sign in to comment.