From d16b2cfd54def72c44e51e0b4bf9f13b0ca9302d Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Tue, 14 Nov 2023 10:13:08 +0000
Subject: [PATCH] test(rtl): partner issue

---
 .../PartnerIssue/PartnerIssueModal.spec.tsx   |   32 +-
 .../PartnerIssueModal.spec.tsx.snap           | 1117 ++---------------
 2 files changed, 119 insertions(+), 1030 deletions(-)

diff --git a/src/components/PartnerIssue/PartnerIssueModal.spec.tsx b/src/components/PartnerIssue/PartnerIssueModal.spec.tsx
index c3ac2e4d6..be3c84076 100644
--- a/src/components/PartnerIssue/PartnerIssueModal.spec.tsx
+++ b/src/components/PartnerIssue/PartnerIssueModal.spec.tsx
@@ -1,62 +1,66 @@
-import { Button } from '@material-ui/core'
+import { render, screen } from '@testing-library/react'
+import { userEvent } from '@testing-library/user-event'
 import { FluidType } from 'enums'
-import { mount } from 'enzyme'
-import toJson from 'enzyme-to-json'
 import React from 'react'
 import PartnerIssueModal from './PartnerIssueModal'
 
 const mockHandleClose = jest.fn()
 describe('PartnerIssueModal component', () => {
   it('should render correctly', () => {
-    const wrapper = mount(
+    const { baseElement } = render(
       <PartnerIssueModal
         open={true}
         handleCloseClick={mockHandleClose}
         issuedFluid={FluidType.ELECTRICITY}
       />
     )
-    expect(toJson(wrapper)).toMatchSnapshot()
+    expect(screen.getByRole('dialog')).toBeInTheDocument()
+    expect(baseElement).toMatchSnapshot()
   })
   it('should render elec modal', () => {
-    const wrapper = mount(
+    render(
       <PartnerIssueModal
         open={true}
         handleCloseClick={mockHandleClose}
         issuedFluid={FluidType.ELECTRICITY}
       />
     )
-    expect(wrapper.text().includes('error_connect_elec')).toBeTruthy()
+    expect(
+      screen.getByText('consumption.partner_issue_modal.error_connect_elec')
+    ).toBeInTheDocument()
   })
   it('should render water modal', () => {
-    const wrapper = mount(
+    render(
       <PartnerIssueModal
         open={true}
         handleCloseClick={mockHandleClose}
         issuedFluid={FluidType.WATER}
       />
     )
-    expect(wrapper.text().includes('error_connect_water')).toBeTruthy()
+    expect(
+      screen.getByText('consumption.partner_issue_modal.error_connect_water')
+    ).toBeInTheDocument()
   })
-  it('should close modal', () => {
-    const wrapper = mount(
+  it('should close modal', async () => {
+    render(
       <PartnerIssueModal
         open={true}
         handleCloseClick={mockHandleClose}
         issuedFluid={FluidType.ELECTRICITY}
       />
     )
-    wrapper.find(Button).simulate('click')
+    await userEvent.click(screen.getAllByRole('button')[0])
     expect(mockHandleClose).toHaveBeenCalled()
   })
 
   it('should not be rendered', () => {
-    const wrapper = mount(
+    render(
       <PartnerIssueModal
         open={false}
         handleCloseClick={mockHandleClose}
         issuedFluid={FluidType.ELECTRICITY}
       />
     )
-    expect(wrapper.find('div.partnerIssueModal').exists()).toBeFalsy()
+    expect(screen.queryByRole('dialog')).toBeFalsy()
   })
 })
diff --git a/src/components/PartnerIssue/__snapshots__/PartnerIssueModal.spec.tsx.snap b/src/components/PartnerIssue/__snapshots__/PartnerIssueModal.spec.tsx.snap
index 8a9188680..c133766ca 100644
--- a/src/components/PartnerIssue/__snapshots__/PartnerIssueModal.spec.tsx.snap
+++ b/src/components/PartnerIssue/__snapshots__/PartnerIssueModal.spec.tsx.snap
@@ -1,1027 +1,112 @@
 // Jest Snapshot v1, https://goo.gl/fbAQLP
 
 exports[`PartnerIssueModal component should render correctly 1`] = `
-<PartnerIssueModal
-  handleCloseClick={[MockFunction]}
-  issuedFluid={0}
-  open={true}
+<body
+  style="padding-right: 0px; overflow: hidden;"
 >
-  <WithStyles(ForwardRef(Dialog))
-    aria-labelledby="accessibility-title"
-    classes={
-      Object {
-        "paper": "modal-paper",
-        "root": "modal-root",
-      }
-    }
-    disableEscapeKeyDown={true}
-    onClose={[Function]}
-    open={true}
-    style={
-      Object {
-        "zIndex": 1500,
-      }
-    }
+  <div
+    aria-hidden="true"
+  />
+  <div
+    class="MuiDialog-root modal-root"
+    role="presentation"
+    style="position: fixed; z-index: 1500; right: 0px; bottom: 0px; top: 0px; left: 0px;"
   >
-    <ForwardRef(Dialog)
-      aria-labelledby="accessibility-title"
-      classes={
-        Object {
-          "container": "MuiDialog-container",
-          "paper": "MuiDialog-paper modal-paper",
-          "paperFullScreen": "MuiDialog-paperFullScreen",
-          "paperFullWidth": "MuiDialog-paperFullWidth",
-          "paperScrollBody": "MuiDialog-paperScrollBody",
-          "paperScrollPaper": "MuiDialog-paperScrollPaper",
-          "paperWidthFalse": "MuiDialog-paperWidthFalse",
-          "paperWidthLg": "MuiDialog-paperWidthLg",
-          "paperWidthMd": "MuiDialog-paperWidthMd",
-          "paperWidthSm": "MuiDialog-paperWidthSm",
-          "paperWidthXl": "MuiDialog-paperWidthXl",
-          "paperWidthXs": "MuiDialog-paperWidthXs",
-          "root": "MuiDialog-root modal-root",
-          "scrollBody": "MuiDialog-scrollBody",
-          "scrollPaper": "MuiDialog-scrollPaper",
-        }
-      }
-      disableEscapeKeyDown={true}
-      onClose={[Function]}
-      open={true}
-      style={
-        Object {
-          "zIndex": 1500,
-        }
-      }
+    <div
+      aria-hidden="true"
+      class="MuiBackdrop-root"
+      style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
+    />
+    <div
+      data-test="sentinelStart"
+      tabindex="0"
+    />
+    <div
+      class="MuiDialog-container MuiDialog-scrollPaper"
+      role="none presentation"
+      style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
+      tabindex="-1"
     >
-      <ForwardRef(Modal)
-        BackdropComponent={
-          Object {
-            "$$typeof": Symbol(react.forward_ref),
-            "Naked": Object {
-              "$$typeof": Symbol(react.forward_ref),
-              "propTypes": Object {
-                "children": [Function],
-                "className": [Function],
-                "classes": [Function],
-                "invisible": [Function],
-                "open": [Function],
-                "transitionDuration": [Function],
-              },
-              "render": [Function],
-            },
-            "displayName": "WithStyles(ForwardRef(Backdrop))",
-            "options": Object {
-              "defaultTheme": Object {
-                "breakpoints": Object {
-                  "between": [Function],
-                  "down": [Function],
-                  "keys": Array [
-                    "xs",
-                    "sm",
-                    "md",
-                    "lg",
-                    "xl",
-                  ],
-                  "only": [Function],
-                  "up": [Function],
-                  "values": Object {
-                    "lg": 1280,
-                    "md": 960,
-                    "sm": 600,
-                    "xl": 1920,
-                    "xs": 0,
-                  },
-                  "width": [Function],
-                },
-                "direction": "ltr",
-                "mixins": Object {
-                  "gutters": [Function],
-                  "toolbar": Object {
-                    "@media (min-width:0px) and (orientation: landscape)": Object {
-                      "minHeight": 48,
-                    },
-                    "@media (min-width:600px)": Object {
-                      "minHeight": 64,
-                    },
-                    "minHeight": 56,
-                  },
-                },
-                "overrides": Object {},
-                "palette": Object {
-                  "action": Object {
-                    "activatedOpacity": 0.12,
-                    "active": "rgba(0, 0, 0, 0.54)",
-                    "disabled": "rgba(0, 0, 0, 0.26)",
-                    "disabledBackground": "rgba(0, 0, 0, 0.12)",
-                    "disabledOpacity": 0.38,
-                    "focus": "rgba(0, 0, 0, 0.12)",
-                    "focusOpacity": 0.12,
-                    "hover": "rgba(0, 0, 0, 0.04)",
-                    "hoverOpacity": 0.04,
-                    "selected": "rgba(0, 0, 0, 0.08)",
-                    "selectedOpacity": 0.08,
-                  },
-                  "augmentColor": [Function],
-                  "background": Object {
-                    "default": "#fafafa",
-                    "paper": "#fff",
-                  },
-                  "common": Object {
-                    "black": "#000",
-                    "white": "#fff",
-                  },
-                  "contrastThreshold": 3,
-                  "divider": "rgba(0, 0, 0, 0.12)",
-                  "error": Object {
-                    "contrastText": "#fff",
-                    "dark": "#d32f2f",
-                    "light": "#e57373",
-                    "main": "#f44336",
-                  },
-                  "getContrastText": [Function],
-                  "grey": Object {
-                    "100": "#f5f5f5",
-                    "200": "#eeeeee",
-                    "300": "#e0e0e0",
-                    "400": "#bdbdbd",
-                    "50": "#fafafa",
-                    "500": "#9e9e9e",
-                    "600": "#757575",
-                    "700": "#616161",
-                    "800": "#424242",
-                    "900": "#212121",
-                    "A100": "#d5d5d5",
-                    "A200": "#aaaaaa",
-                    "A400": "#303030",
-                    "A700": "#616161",
-                  },
-                  "info": Object {
-                    "contrastText": "#fff",
-                    "dark": "#1976d2",
-                    "light": "#64b5f6",
-                    "main": "#2196f3",
-                  },
-                  "primary": Object {
-                    "contrastText": "#fff",
-                    "dark": "#303f9f",
-                    "light": "#7986cb",
-                    "main": "#3f51b5",
-                  },
-                  "secondary": Object {
-                    "contrastText": "#fff",
-                    "dark": "#c51162",
-                    "light": "#ff4081",
-                    "main": "#f50057",
-                  },
-                  "success": Object {
-                    "contrastText": "rgba(0, 0, 0, 0.87)",
-                    "dark": "#388e3c",
-                    "light": "#81c784",
-                    "main": "#4caf50",
-                  },
-                  "text": Object {
-                    "disabled": "rgba(0, 0, 0, 0.38)",
-                    "hint": "rgba(0, 0, 0, 0.38)",
-                    "primary": "rgba(0, 0, 0, 0.87)",
-                    "secondary": "rgba(0, 0, 0, 0.54)",
-                  },
-                  "tonalOffset": 0.2,
-                  "type": "light",
-                  "warning": Object {
-                    "contrastText": "rgba(0, 0, 0, 0.87)",
-                    "dark": "#f57c00",
-                    "light": "#ffb74d",
-                    "main": "#ff9800",
-                  },
-                },
-                "props": Object {},
-                "shadows": Array [
-                  "none",
-                  "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",
-                  "0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
-                  "0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",
-                  "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
-                  "0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
-                  "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
-                  "0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
-                  "0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
-                  "0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
-                  "0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
-                  "0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
-                  "0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
-                  "0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
-                  "0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
-                  "0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
-                  "0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
-                  "0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
-                  "0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
-                  "0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
-                  "0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
-                  "0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
-                  "0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
-                  "0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
-                  "0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)",
-                ],
-                "shape": Object {
-                  "borderRadius": 4,
-                },
-                "spacing": [Function],
-                "transitions": Object {
-                  "create": [Function],
-                  "duration": Object {
-                    "complex": 375,
-                    "enteringScreen": 225,
-                    "leavingScreen": 195,
-                    "short": 250,
-                    "shorter": 200,
-                    "shortest": 150,
-                    "standard": 300,
-                  },
-                  "easing": Object {
-                    "easeIn": "cubic-bezier(0.4, 0, 1, 1)",
-                    "easeInOut": "cubic-bezier(0.4, 0, 0.2, 1)",
-                    "easeOut": "cubic-bezier(0.0, 0, 0.2, 1)",
-                    "sharp": "cubic-bezier(0.4, 0, 0.6, 1)",
-                  },
-                  "getAutoHeightDuration": [Function],
-                },
-                "typography": Object {
-                  "body1": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "1rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.00938em",
-                    "lineHeight": 1.5,
-                  },
-                  "body2": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "0.875rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.01071em",
-                    "lineHeight": 1.43,
-                  },
-                  "button": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "0.875rem",
-                    "fontWeight": 500,
-                    "letterSpacing": "0.02857em",
-                    "lineHeight": 1.75,
-                    "textTransform": "uppercase",
-                  },
-                  "caption": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "0.75rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.03333em",
-                    "lineHeight": 1.66,
-                  },
-                  "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                  "fontSize": 14,
-                  "fontWeightBold": 700,
-                  "fontWeightLight": 300,
-                  "fontWeightMedium": 500,
-                  "fontWeightRegular": 400,
-                  "h1": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "6rem",
-                    "fontWeight": 300,
-                    "letterSpacing": "-0.01562em",
-                    "lineHeight": 1.167,
-                  },
-                  "h2": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "3.75rem",
-                    "fontWeight": 300,
-                    "letterSpacing": "-0.00833em",
-                    "lineHeight": 1.2,
-                  },
-                  "h3": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "3rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0em",
-                    "lineHeight": 1.167,
-                  },
-                  "h4": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "2.125rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.00735em",
-                    "lineHeight": 1.235,
-                  },
-                  "h5": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "1.5rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0em",
-                    "lineHeight": 1.334,
-                  },
-                  "h6": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "1.25rem",
-                    "fontWeight": 500,
-                    "letterSpacing": "0.0075em",
-                    "lineHeight": 1.6,
-                  },
-                  "htmlFontSize": 16,
-                  "overline": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "0.75rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.08333em",
-                    "lineHeight": 2.66,
-                    "textTransform": "uppercase",
-                  },
-                  "pxToRem": [Function],
-                  "round": [Function],
-                  "subtitle1": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "1rem",
-                    "fontWeight": 400,
-                    "letterSpacing": "0.00938em",
-                    "lineHeight": 1.75,
-                  },
-                  "subtitle2": Object {
-                    "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
-                    "fontSize": "0.875rem",
-                    "fontWeight": 500,
-                    "letterSpacing": "0.00714em",
-                    "lineHeight": 1.57,
-                  },
-                },
-                "zIndex": Object {
-                  "appBar": 1100,
-                  "drawer": 1200,
-                  "mobileStepper": 1000,
-                  "modal": 1300,
-                  "snackbar": 1400,
-                  "speedDial": 1050,
-                  "tooltip": 1500,
-                },
-              },
-              "name": "MuiBackdrop",
-            },
-            "propTypes": Object {
-              "classes": [Function],
-              "innerRef": [Function],
-            },
-            "render": [Function],
-            "useStyles": [Function],
-          }
-        }
-        BackdropProps={
-          Object {
-            "transitionDuration": Object {
-              "enter": 225,
-              "exit": 195,
-            },
-          }
-        }
-        className="MuiDialog-root modal-root"
-        closeAfterTransition={true}
-        disableEscapeKeyDown={true}
-        onClose={[Function]}
-        open={true}
-        style={
-          Object {
-            "zIndex": 1500,
-          }
-        }
+      <div
+        aria-labelledby="accessibility-title"
+        class="MuiPaper-root MuiDialog-paper modal-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm MuiPaper-elevation24 MuiPaper-rounded"
+        role="dialog"
       >
-        <ForwardRef(Portal)
-          disablePortal={false}
+        <div
+          id="accessibility-title"
         >
-          <Portal
-            containerInfo={
-              <body
-                style="padding-right: 0px; overflow: hidden;"
-              >
-                <div
-                  class="MuiDialog-root modal-root"
-                  role="presentation"
-                  style="position: fixed; z-index: 1500; right: 0px; bottom: 0px; top: 0px; left: 0px;"
-                >
-                  <div
-                    aria-hidden="true"
-                    class="MuiBackdrop-root"
-                    style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
-                  />
-                  <div
-                    data-test="sentinelStart"
-                    tabindex="0"
-                  />
-                  <div
-                    class="MuiDialog-container MuiDialog-scrollPaper"
-                    role="none presentation"
-                    style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
-                    tabindex="-1"
-                  >
-                    <div
-                      aria-labelledby="accessibility-title"
-                      class="MuiPaper-root MuiDialog-paper modal-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm MuiPaper-elevation24 MuiPaper-rounded"
-                      role="dialog"
-                    >
-                      <div
-                        id="accessibility-title"
-                      >
-                        feedback.accessibility.window_title
-                      </div>
-                      <button
-                        aria-label="feedback.accessibility.button_close"
-                        class="MuiButtonBase-root MuiIconButton-root modal-paper-close-button"
-                        tabindex="0"
-                        type="button"
-                      >
-                        <span
-                          class="MuiIconButton-label"
-                        >
-                          <svg
-                            class="styles__icon___23x3R"
-                            height="16"
-                            width="16"
-                          >
-                            <use
-                              xlink:href="#test-file-stub"
-                            />
-                          </svg>
-                        </span>
-                        <span
-                          class="MuiTouchRipple-root"
-                        />
-                      </button>
-                      <div
-                        class="partnerIssueModal"
-                      >
-                        <svg
-                          aria-hidden="true"
-                          class="warn-icon styles__icon___23x3R"
-                          height="40"
-                          width="40"
-                        >
-                          <use
-                            xlink:href="#test-file-stub"
-                          />
-                        </svg>
-                        <div
-                          class="partner-issue-title text-20-bold"
-                        >
-                          consumption.partner_issue_modal.title
-                        </div>
-                        <div
-                          class="partner-issue-content text-16-normal"
-                        >
-                          consumption.partner_issue_modal.error_connect_elec
-                        </div>
-                        <div>
-                          consumption.partner_issue_modal.additional_text
-                        </div>
-                        <button
-                          class="MuiButtonBase-root MuiButton-root MuiButton-text btnPrimary"
-                          tabindex="0"
-                          type="button"
-                        >
-                          <span
-                            class="MuiButton-label"
-                          >
-                            consumption.partner_issue_modal.ok
-                          </span>
-                          <span
-                            class="MuiTouchRipple-root"
-                          />
-                        </button>
-                      </div>
-                    </div>
-                  </div>
-                  <div
-                    data-test="sentinelEnd"
-                    tabindex="0"
-                  />
-                </div>
-              </body>
-            }
+          feedback.accessibility.window_title
+        </div>
+        <button
+          aria-label="feedback.accessibility.button_close"
+          class="MuiButtonBase-root MuiIconButton-root modal-paper-close-button"
+          tabindex="0"
+          type="button"
+        >
+          <span
+            class="MuiIconButton-label"
+          >
+            <svg
+              class="styles__icon___23x3R"
+              height="16"
+              width="16"
+            >
+              <use
+                xlink:href="#test-file-stub"
+              />
+            </svg>
+          </span>
+          <span
+            class="MuiTouchRipple-root"
+          />
+        </button>
+        <div
+          class="partnerIssueModal"
+        >
+          <svg
+            aria-hidden="true"
+            class="warn-icon styles__icon___23x3R"
+            height="40"
+            width="40"
+          >
+            <use
+              xlink:href="#test-file-stub"
+            />
+          </svg>
+          <div
+            class="partner-issue-title text-20-bold"
+          >
+            consumption.partner_issue_modal.title
+          </div>
+          <div
+            class="partner-issue-content text-16-normal"
+          >
+            consumption.partner_issue_modal.error_connect_elec
+          </div>
+          <div>
+            consumption.partner_issue_modal.additional_text
+          </div>
+          <button
+            class="MuiButtonBase-root MuiButton-root MuiButton-text btnPrimary"
+            tabindex="0"
+            type="button"
           >
-            <div
-              className="MuiDialog-root modal-root"
-              onKeyDown={[Function]}
-              role="presentation"
-              style={
-                Object {
-                  "bottom": 0,
-                  "left": 0,
-                  "position": "fixed",
-                  "right": 0,
-                  "top": 0,
-                  "zIndex": 1500,
-                }
-              }
+            <span
+              class="MuiButton-label"
             >
-              <WithStyles(ForwardRef(Backdrop))
-                onClick={[Function]}
-                open={true}
-                transitionDuration={
-                  Object {
-                    "enter": 225,
-                    "exit": 195,
-                  }
-                }
-              >
-                <ForwardRef(Backdrop)
-                  classes={
-                    Object {
-                      "invisible": "MuiBackdrop-invisible",
-                      "root": "MuiBackdrop-root",
-                    }
-                  }
-                  onClick={[Function]}
-                  open={true}
-                  transitionDuration={
-                    Object {
-                      "enter": 225,
-                      "exit": 195,
-                    }
-                  }
-                >
-                  <ForwardRef(Fade)
-                    in={true}
-                    onClick={[Function]}
-                    timeout={
-                      Object {
-                        "enter": 225,
-                        "exit": 195,
-                      }
-                    }
-                  >
-                    <Transition
-                      appear={true}
-                      enter={true}
-                      exit={true}
-                      in={true}
-                      mountOnEnter={false}
-                      onClick={[Function]}
-                      onEnter={[Function]}
-                      onEntered={[Function]}
-                      onEntering={[Function]}
-                      onExit={[Function]}
-                      onExited={[Function]}
-                      onExiting={[Function]}
-                      timeout={
-                        Object {
-                          "enter": 225,
-                          "exit": 195,
-                        }
-                      }
-                      unmountOnExit={false}
-                    >
-                      <div
-                        aria-hidden={true}
-                        className="MuiBackdrop-root"
-                        onClick={[Function]}
-                        style={
-                          Object {
-                            "opacity": 1,
-                            "visibility": undefined,
-                          }
-                        }
-                      />
-                    </Transition>
-                  </ForwardRef(Fade)>
-                </ForwardRef(Backdrop)>
-              </WithStyles(ForwardRef(Backdrop))>
-              <Unstable_TrapFocus
-                disableAutoFocus={false}
-                disableEnforceFocus={false}
-                disableRestoreFocus={false}
-                getDoc={[Function]}
-                isEnabled={[Function]}
-                open={true}
-              >
-                <div
-                  data-test="sentinelStart"
-                  tabIndex={0}
-                />
-                <ForwardRef(Fade)
-                  appear={true}
-                  in={true}
-                  onEnter={[Function]}
-                  onExited={[Function]}
-                  role="none presentation"
-                  tabIndex="-1"
-                  timeout={
-                    Object {
-                      "enter": 225,
-                      "exit": 195,
-                    }
-                  }
-                >
-                  <Transition
-                    appear={true}
-                    enter={true}
-                    exit={true}
-                    in={true}
-                    mountOnEnter={false}
-                    onEnter={[Function]}
-                    onEntered={[Function]}
-                    onEntering={[Function]}
-                    onExit={[Function]}
-                    onExited={[Function]}
-                    onExiting={[Function]}
-                    role="none presentation"
-                    tabIndex="-1"
-                    timeout={
-                      Object {
-                        "enter": 225,
-                        "exit": 195,
-                      }
-                    }
-                    unmountOnExit={false}
-                  >
-                    <div
-                      className="MuiDialog-container MuiDialog-scrollPaper"
-                      onMouseDown={[Function]}
-                      onMouseUp={[Function]}
-                      role="none presentation"
-                      style={
-                        Object {
-                          "opacity": 1,
-                          "visibility": undefined,
-                        }
-                      }
-                      tabIndex="-1"
-                    >
-                      <WithStyles(ForwardRef(Paper))
-                        aria-labelledby="accessibility-title"
-                        className="MuiDialog-paper modal-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm"
-                        elevation={24}
-                        role="dialog"
-                      >
-                        <ForwardRef(Paper)
-                          aria-labelledby="accessibility-title"
-                          className="MuiDialog-paper modal-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm"
-                          classes={
-                            Object {
-                              "elevation0": "MuiPaper-elevation0",
-                              "elevation1": "MuiPaper-elevation1",
-                              "elevation10": "MuiPaper-elevation10",
-                              "elevation11": "MuiPaper-elevation11",
-                              "elevation12": "MuiPaper-elevation12",
-                              "elevation13": "MuiPaper-elevation13",
-                              "elevation14": "MuiPaper-elevation14",
-                              "elevation15": "MuiPaper-elevation15",
-                              "elevation16": "MuiPaper-elevation16",
-                              "elevation17": "MuiPaper-elevation17",
-                              "elevation18": "MuiPaper-elevation18",
-                              "elevation19": "MuiPaper-elevation19",
-                              "elevation2": "MuiPaper-elevation2",
-                              "elevation20": "MuiPaper-elevation20",
-                              "elevation21": "MuiPaper-elevation21",
-                              "elevation22": "MuiPaper-elevation22",
-                              "elevation23": "MuiPaper-elevation23",
-                              "elevation24": "MuiPaper-elevation24",
-                              "elevation3": "MuiPaper-elevation3",
-                              "elevation4": "MuiPaper-elevation4",
-                              "elevation5": "MuiPaper-elevation5",
-                              "elevation6": "MuiPaper-elevation6",
-                              "elevation7": "MuiPaper-elevation7",
-                              "elevation8": "MuiPaper-elevation8",
-                              "elevation9": "MuiPaper-elevation9",
-                              "outlined": "MuiPaper-outlined",
-                              "root": "MuiPaper-root",
-                              "rounded": "MuiPaper-rounded",
-                            }
-                          }
-                          elevation={24}
-                          role="dialog"
-                        >
-                          <div
-                            aria-labelledby="accessibility-title"
-                            className="MuiPaper-root MuiDialog-paper modal-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthSm MuiPaper-elevation24 MuiPaper-rounded"
-                            role="dialog"
-                          >
-                            <div
-                              id="accessibility-title"
-                            >
-                              feedback.accessibility.window_title
-                            </div>
-                            <WithStyles(ForwardRef(IconButton))
-                              aria-label="feedback.accessibility.button_close"
-                              className="modal-paper-close-button"
-                              onClick={[Function]}
-                            >
-                              <ForwardRef(IconButton)
-                                aria-label="feedback.accessibility.button_close"
-                                className="modal-paper-close-button"
-                                classes={
-                                  Object {
-                                    "colorInherit": "MuiIconButton-colorInherit",
-                                    "colorPrimary": "MuiIconButton-colorPrimary",
-                                    "colorSecondary": "MuiIconButton-colorSecondary",
-                                    "disabled": "Mui-disabled",
-                                    "edgeEnd": "MuiIconButton-edgeEnd",
-                                    "edgeStart": "MuiIconButton-edgeStart",
-                                    "label": "MuiIconButton-label",
-                                    "root": "MuiIconButton-root",
-                                    "sizeSmall": "MuiIconButton-sizeSmall",
-                                  }
-                                }
-                                onClick={[Function]}
-                              >
-                                <WithStyles(ForwardRef(ButtonBase))
-                                  aria-label="feedback.accessibility.button_close"
-                                  centerRipple={true}
-                                  className="MuiIconButton-root modal-paper-close-button"
-                                  disabled={false}
-                                  focusRipple={true}
-                                  onClick={[Function]}
-                                >
-                                  <ForwardRef(ButtonBase)
-                                    aria-label="feedback.accessibility.button_close"
-                                    centerRipple={true}
-                                    className="MuiIconButton-root modal-paper-close-button"
-                                    classes={
-                                      Object {
-                                        "disabled": "Mui-disabled",
-                                        "focusVisible": "Mui-focusVisible",
-                                        "root": "MuiButtonBase-root",
-                                      }
-                                    }
-                                    disabled={false}
-                                    focusRipple={true}
-                                    onClick={[Function]}
-                                  >
-                                    <button
-                                      aria-label="feedback.accessibility.button_close"
-                                      className="MuiButtonBase-root MuiIconButton-root modal-paper-close-button"
-                                      disabled={false}
-                                      onBlur={[Function]}
-                                      onClick={[Function]}
-                                      onDragLeave={[Function]}
-                                      onFocus={[Function]}
-                                      onKeyDown={[Function]}
-                                      onKeyUp={[Function]}
-                                      onMouseDown={[Function]}
-                                      onMouseLeave={[Function]}
-                                      onMouseUp={[Function]}
-                                      onTouchEnd={[Function]}
-                                      onTouchMove={[Function]}
-                                      onTouchStart={[Function]}
-                                      tabIndex={0}
-                                      type="button"
-                                    >
-                                      <span
-                                        className="MuiIconButton-label"
-                                      >
-                                        <Icon
-                                          icon="test-file-stub"
-                                          size={16}
-                                          spin={false}
-                                        >
-                                          <Component
-                                            className="styles__icon___23x3R"
-                                            height={16}
-                                            style={Object {}}
-                                            width={16}
-                                          >
-                                            <svg
-                                              className="styles__icon___23x3R"
-                                              height={16}
-                                              style={Object {}}
-                                              width={16}
-                                            >
-                                              <use
-                                                xlinkHref="#test-file-stub"
-                                              />
-                                            </svg>
-                                          </Component>
-                                        </Icon>
-                                      </span>
-                                      <WithStyles(memo)
-                                        center={true}
-                                      >
-                                        <ForwardRef(TouchRipple)
-                                          center={true}
-                                          classes={
-                                            Object {
-                                              "child": "MuiTouchRipple-child",
-                                              "childLeaving": "MuiTouchRipple-childLeaving",
-                                              "childPulsate": "MuiTouchRipple-childPulsate",
-                                              "ripple": "MuiTouchRipple-ripple",
-                                              "ripplePulsate": "MuiTouchRipple-ripplePulsate",
-                                              "rippleVisible": "MuiTouchRipple-rippleVisible",
-                                              "root": "MuiTouchRipple-root",
-                                            }
-                                          }
-                                        >
-                                          <span
-                                            className="MuiTouchRipple-root"
-                                          >
-                                            <TransitionGroup
-                                              childFactory={[Function]}
-                                              component={null}
-                                              exit={true}
-                                            />
-                                          </span>
-                                        </ForwardRef(TouchRipple)>
-                                      </WithStyles(memo)>
-                                    </button>
-                                  </ForwardRef(ButtonBase)>
-                                </WithStyles(ForwardRef(ButtonBase))>
-                              </ForwardRef(IconButton)>
-                            </WithStyles(ForwardRef(IconButton))>
-                            <div
-                              className="partnerIssueModal"
-                            >
-                              <StyledIcon
-                                className="warn-icon"
-                                icon="test-file-stub"
-                                size={40}
-                              >
-                                <Icon
-                                  aria-hidden={true}
-                                  className="warn-icon"
-                                  icon="test-file-stub"
-                                  size={40}
-                                  spin={false}
-                                >
-                                  <Component
-                                    aria-hidden={true}
-                                    className="warn-icon styles__icon___23x3R"
-                                    height={40}
-                                    style={Object {}}
-                                    width={40}
-                                  >
-                                    <svg
-                                      aria-hidden={true}
-                                      className="warn-icon styles__icon___23x3R"
-                                      height={40}
-                                      style={Object {}}
-                                      width={40}
-                                    >
-                                      <use
-                                        xlinkHref="#test-file-stub"
-                                      />
-                                    </svg>
-                                  </Component>
-                                </Icon>
-                              </StyledIcon>
-                              <div
-                                className="partner-issue-title text-20-bold"
-                              >
-                                consumption.partner_issue_modal.title
-                              </div>
-                              <div
-                                className="partner-issue-content text-16-normal"
-                                dangerouslySetInnerHTML={
-                                  Object {
-                                    "__html": "consumption.partner_issue_modal.error_connect_elec",
-                                  }
-                                }
-                              />
-                              <div
-                                dangerouslySetInnerHTML={
-                                  Object {
-                                    "__html": "consumption.partner_issue_modal.additional_text",
-                                  }
-                                }
-                              />
-                              <WithStyles(ForwardRef(Button))
-                                className="btnPrimary"
-                                onClick={[Function]}
-                              >
-                                <ForwardRef(Button)
-                                  className="btnPrimary"
-                                  classes={
-                                    Object {
-                                      "colorInherit": "MuiButton-colorInherit",
-                                      "contained": "MuiButton-contained",
-                                      "containedPrimary": "MuiButton-containedPrimary",
-                                      "containedSecondary": "MuiButton-containedSecondary",
-                                      "containedSizeLarge": "MuiButton-containedSizeLarge",
-                                      "containedSizeSmall": "MuiButton-containedSizeSmall",
-                                      "disableElevation": "MuiButton-disableElevation",
-                                      "disabled": "Mui-disabled",
-                                      "endIcon": "MuiButton-endIcon",
-                                      "focusVisible": "Mui-focusVisible",
-                                      "fullWidth": "MuiButton-fullWidth",
-                                      "iconSizeLarge": "MuiButton-iconSizeLarge",
-                                      "iconSizeMedium": "MuiButton-iconSizeMedium",
-                                      "iconSizeSmall": "MuiButton-iconSizeSmall",
-                                      "label": "MuiButton-label",
-                                      "outlined": "MuiButton-outlined",
-                                      "outlinedPrimary": "MuiButton-outlinedPrimary",
-                                      "outlinedSecondary": "MuiButton-outlinedSecondary",
-                                      "outlinedSizeLarge": "MuiButton-outlinedSizeLarge",
-                                      "outlinedSizeSmall": "MuiButton-outlinedSizeSmall",
-                                      "root": "MuiButton-root",
-                                      "sizeLarge": "MuiButton-sizeLarge",
-                                      "sizeSmall": "MuiButton-sizeSmall",
-                                      "startIcon": "MuiButton-startIcon",
-                                      "text": "MuiButton-text",
-                                      "textPrimary": "MuiButton-textPrimary",
-                                      "textSecondary": "MuiButton-textSecondary",
-                                      "textSizeLarge": "MuiButton-textSizeLarge",
-                                      "textSizeSmall": "MuiButton-textSizeSmall",
-                                    }
-                                  }
-                                  onClick={[Function]}
-                                >
-                                  <WithStyles(ForwardRef(ButtonBase))
-                                    className="MuiButton-root MuiButton-text btnPrimary"
-                                    component="button"
-                                    disabled={false}
-                                    focusRipple={true}
-                                    focusVisibleClassName="Mui-focusVisible"
-                                    onClick={[Function]}
-                                    type="button"
-                                  >
-                                    <ForwardRef(ButtonBase)
-                                      className="MuiButton-root MuiButton-text btnPrimary"
-                                      classes={
-                                        Object {
-                                          "disabled": "Mui-disabled",
-                                          "focusVisible": "Mui-focusVisible",
-                                          "root": "MuiButtonBase-root",
-                                        }
-                                      }
-                                      component="button"
-                                      disabled={false}
-                                      focusRipple={true}
-                                      focusVisibleClassName="Mui-focusVisible"
-                                      onClick={[Function]}
-                                      type="button"
-                                    >
-                                      <button
-                                        className="MuiButtonBase-root MuiButton-root MuiButton-text btnPrimary"
-                                        disabled={false}
-                                        onBlur={[Function]}
-                                        onClick={[Function]}
-                                        onDragLeave={[Function]}
-                                        onFocus={[Function]}
-                                        onKeyDown={[Function]}
-                                        onKeyUp={[Function]}
-                                        onMouseDown={[Function]}
-                                        onMouseLeave={[Function]}
-                                        onMouseUp={[Function]}
-                                        onTouchEnd={[Function]}
-                                        onTouchMove={[Function]}
-                                        onTouchStart={[Function]}
-                                        tabIndex={0}
-                                        type="button"
-                                      >
-                                        <span
-                                          className="MuiButton-label"
-                                        >
-                                          consumption.partner_issue_modal.ok
-                                        </span>
-                                        <WithStyles(memo)
-                                          center={false}
-                                        >
-                                          <ForwardRef(TouchRipple)
-                                            center={false}
-                                            classes={
-                                              Object {
-                                                "child": "MuiTouchRipple-child",
-                                                "childLeaving": "MuiTouchRipple-childLeaving",
-                                                "childPulsate": "MuiTouchRipple-childPulsate",
-                                                "ripple": "MuiTouchRipple-ripple",
-                                                "ripplePulsate": "MuiTouchRipple-ripplePulsate",
-                                                "rippleVisible": "MuiTouchRipple-rippleVisible",
-                                                "root": "MuiTouchRipple-root",
-                                              }
-                                            }
-                                          >
-                                            <span
-                                              className="MuiTouchRipple-root"
-                                            >
-                                              <TransitionGroup
-                                                childFactory={[Function]}
-                                                component={null}
-                                                exit={true}
-                                              />
-                                            </span>
-                                          </ForwardRef(TouchRipple)>
-                                        </WithStyles(memo)>
-                                      </button>
-                                    </ForwardRef(ButtonBase)>
-                                  </WithStyles(ForwardRef(ButtonBase))>
-                                </ForwardRef(Button)>
-                              </WithStyles(ForwardRef(Button))>
-                            </div>
-                          </div>
-                        </ForwardRef(Paper)>
-                      </WithStyles(ForwardRef(Paper))>
-                    </div>
-                  </Transition>
-                </ForwardRef(Fade)>
-                <div
-                  data-test="sentinelEnd"
-                  tabIndex={0}
-                />
-              </Unstable_TrapFocus>
-            </div>
-          </Portal>
-        </ForwardRef(Portal)>
-      </ForwardRef(Modal)>
-    </ForwardRef(Dialog)>
-  </WithStyles(ForwardRef(Dialog))>
-</PartnerIssueModal>
+              consumption.partner_issue_modal.ok
+            </span>
+            <span
+              class="MuiTouchRipple-root"
+            />
+          </button>
+        </div>
+      </div>
+    </div>
+    <div
+      data-test="sentinelEnd"
+      tabindex="0"
+    />
+  </div>
+</body>
 `;
-- 
GitLab