-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix change to go back to 'fake' modal (#62)
* fix: rebase * fix: tests * fix: remove broken code button * fix: test case with iff
- Loading branch information
1 parent
be12d11
commit 5200897
Showing
9 changed files
with
122 additions
and
111 deletions.
There are no files selected for viewing
143 changes: 69 additions & 74 deletions
143
src/editors/containers/EditorContainer/__snapshots__/index.test.jsx.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,87 +1,82 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EditorContainer component render snapshot: initialized. enable save and pass to header 1`] = ` | ||
<FullscreenModal | ||
footerNode={ | ||
<InjectIntl(ShimmedIntlComponent) | ||
disableSave={false} | ||
onCancel={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
} | ||
onSave={ | ||
Object { | ||
"handleSaveClicked": Object { | ||
"dispatch": [MockFunction react-redux.dispatch], | ||
"getContent": [MockFunction props.getContent], | ||
}, | ||
} | ||
} | ||
/> | ||
} | ||
isOpen={true} | ||
onClose={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
} | ||
title={ | ||
<InjectIntl(ShimmedIntlComponent) | ||
isInitialized={true} | ||
/> | ||
} | ||
variant="primary" | ||
> | ||
<div> | ||
<ModalDialog.Header> | ||
<ModalDialog.Title> | ||
<InjectIntl(ShimmedIntlComponent) | ||
isInitialized={true} | ||
/> | ||
<div | ||
className="pgn__modal-close-container" | ||
> | ||
<IconButton | ||
iconAs="Icon" | ||
onClick={[MockFunction props.onClose]} | ||
src={[MockFunction icons.Close]} | ||
/> | ||
</div> | ||
</ModalDialog.Title> | ||
</ModalDialog.Header> | ||
<h1> | ||
My test content | ||
</h1> | ||
</FullscreenModal> | ||
<InjectIntl(ShimmedIntlComponent) | ||
disableSave={false} | ||
onCancel={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
} | ||
onSave={ | ||
Object { | ||
"handleSaveClicked": Object { | ||
"dispatch": [MockFunction react-redux.dispatch], | ||
"getContent": [MockFunction props.getContent], | ||
}, | ||
} | ||
} | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`EditorContainer component render snapshot: not initialized. disable save and pass to header 1`] = ` | ||
<FullscreenModal | ||
footerNode={ | ||
<InjectIntl(ShimmedIntlComponent) | ||
disableSave={true} | ||
onCancel={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
<div> | ||
<ModalDialog.Header> | ||
<ModalDialog.Title> | ||
<InjectIntl(ShimmedIntlComponent) | ||
isInitialized={false} | ||
/> | ||
<div | ||
className="pgn__modal-close-container" | ||
> | ||
<IconButton | ||
iconAs="Icon" | ||
onClick={[MockFunction props.onClose]} | ||
src={[MockFunction icons.Close]} | ||
/> | ||
</div> | ||
</ModalDialog.Title> | ||
</ModalDialog.Header> | ||
<InjectIntl(ShimmedIntlComponent) | ||
disableSave={true} | ||
onCancel={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
onSave={ | ||
Object { | ||
"handleSaveClicked": Object { | ||
"dispatch": [MockFunction react-redux.dispatch], | ||
"getContent": [MockFunction props.getContent], | ||
}, | ||
} | ||
} | ||
onSave={ | ||
Object { | ||
"handleSaveClicked": Object { | ||
"dispatch": [MockFunction react-redux.dispatch], | ||
"getContent": [MockFunction props.getContent], | ||
}, | ||
} | ||
/> | ||
} | ||
isOpen={true} | ||
onClose={ | ||
Object { | ||
"handleCancelClicked": Object { | ||
"onClose": [MockFunction props.onClose], | ||
}, | ||
} | ||
} | ||
title={ | ||
<InjectIntl(ShimmedIntlComponent) | ||
isInitialized={false} | ||
/> | ||
} | ||
variant="primary" | ||
> | ||
<h1> | ||
My test content | ||
</h1> | ||
</FullscreenModal> | ||
/> | ||
</div> | ||
`; |
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
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
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
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,3 +0,0 @@ | ||
.pgn__modal-layer { | ||
z-index: 0; | ||
} | ||
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
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
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
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