-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MDS-5329] Fixed error when opening the ESUP creation modal (#2557)
Co-authored-by: simensma-fresh <[email protected]>
- Loading branch information
1 parent
c228cf3
commit 8062caf
Showing
4 changed files
with
165 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 47 additions & 43 deletions
90
...ces/core-web/src/tests/components/common/wrappers/__snapshots__/ModalWrapper.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,55 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ModalWrapper renders properly 1`] = ` | ||
<Modal | ||
closable={false} | ||
footer={null} | ||
title="mockTitle" | ||
visible={false} | ||
width={520} | ||
> | ||
<ForwardRef | ||
cancelText="No" | ||
okText="Yes" | ||
onConfirm={[Function]} | ||
placement="bottomRight" | ||
title="Are you sure you want to cancel?" | ||
<Fragment> | ||
<div /> | ||
<Modal | ||
closable={false} | ||
footer={null} | ||
getContainer={[Function]} | ||
open={false} | ||
title="mockTitle" | ||
width={520} | ||
> | ||
<Button | ||
className="modal__close" | ||
ghost={true} | ||
<ForwardRef | ||
cancelText="No" | ||
okText="Yes" | ||
onConfirm={[Function]} | ||
placement="bottomRight" | ||
title="Are you sure you want to cancel?" | ||
> | ||
<ForwardRef(CloseOutlined) | ||
className="icon-sm" | ||
/> | ||
</Button> | ||
</ForwardRef> | ||
<Connect(LoadingBar) | ||
scope="modal" | ||
style={ | ||
Object { | ||
"backgroundColor": "#5e46a1", | ||
"height": "3px", | ||
"left": 0, | ||
"position": "absolute", | ||
"top": "54px", | ||
"zIndex": 100, | ||
<Button | ||
className="modal__close" | ||
ghost={true} | ||
> | ||
<ForwardRef(CloseOutlined) | ||
className="icon-sm" | ||
/> | ||
</Button> | ||
</ForwardRef> | ||
<Connect(LoadingBar) | ||
scope="modal" | ||
style={ | ||
Object { | ||
"backgroundColor": "#5e46a1", | ||
"height": "3px", | ||
"left": 0, | ||
"position": "absolute", | ||
"top": "54px", | ||
"zIndex": 100, | ||
} | ||
} | ||
} | ||
/> | ||
<Connect(AddPartyComponentWrapper) | ||
childProps={ | ||
Object { | ||
"title": "mockTitle", | ||
/> | ||
<Connect(AddPartyComponentWrapper) | ||
childProps={ | ||
Object { | ||
"title": "mockTitle", | ||
} | ||
} | ||
} | ||
clearOnSubmit={false} | ||
closeModal={[MockFunction]} | ||
content={[MockFunction]} | ||
/> | ||
</Modal> | ||
clearOnSubmit={false} | ||
closeModal={[MockFunction]} | ||
content={[MockFunction]} | ||
/> | ||
</Modal> | ||
</Fragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 28 additions & 24 deletions
52
...inespace-web/src/tests/components/common/wrappers/__snapshots__/ModalWrapper.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ModalWrapper renders properly 1`] = ` | ||
<Modal | ||
closable={false} | ||
footer={null} | ||
title="mockTitle" | ||
visible={false} | ||
> | ||
<Connect(LoadingBar) | ||
className="color-primary" | ||
scope="modal" | ||
style={ | ||
Object { | ||
"height": "8px", | ||
"left": 0, | ||
"position": "absolute", | ||
"top": "50px", | ||
"width": "100%", | ||
"zIndex": 1001, | ||
} | ||
} | ||
/> | ||
<mockConstructor | ||
closeModal={[MockFunction]} | ||
<Fragment> | ||
<div /> | ||
<Modal | ||
closable={false} | ||
footer={null} | ||
getContainer={[Function]} | ||
open={false} | ||
title="mockTitle" | ||
/> | ||
</Modal> | ||
> | ||
<Connect(LoadingBar) | ||
className="color-primary" | ||
scope="modal" | ||
style={ | ||
Object { | ||
"height": "8px", | ||
"left": 0, | ||
"position": "absolute", | ||
"top": "50px", | ||
"width": "100%", | ||
"zIndex": 1001, | ||
} | ||
} | ||
/> | ||
<mockConstructor | ||
closeModal={[MockFunction]} | ||
title="mockTitle" | ||
/> | ||
</Modal> | ||
</Fragment> | ||
`; |