forked from codeforboston/cliff-effects
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feedback prompt, shallow to mount, codeforboston#966
- Loading branch information
Showing
2 changed files
with
29 additions
and
39 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
64 changes: 27 additions & 37 deletions
64
src/test/components/prompts/__snapshots__/FeedbackPrompt.test.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,42 +1,32 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`A feedback prompt should match the snapshot 1`] = ` | ||
<Modal | ||
closeOnDimmerClick={true} | ||
closeOnDocumentClick={false} | ||
dimmer={true} | ||
eventPool="Modal" | ||
mountNode={null} | ||
<FeedbackPrompt | ||
header="Test prompt data" | ||
isBlocking={true} | ||
leaveText="Reset" | ||
openFeedback={[Function]} | ||
> | ||
<ModalHeader> | ||
Test prompt data | ||
</ModalHeader> | ||
<ModalContent> | ||
<p> | ||
</p> | ||
</ModalContent> | ||
<ModalActions> | ||
<Button | ||
as="button" | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</Button> | ||
<Button | ||
as="button" | ||
onClick={[Function]} | ||
> | ||
Reset | ||
</Button> | ||
<Button | ||
as="button" | ||
onClick={[Function]} | ||
primary={true} | ||
> | ||
Tell Us More | ||
</Button> | ||
</ModalActions> | ||
</Modal> | ||
<Modal | ||
closeOnDimmerClick={true} | ||
closeOnDocumentClick={false} | ||
dimmer={true} | ||
eventPool="Modal" | ||
mountNode={null} | ||
> | ||
<Portal | ||
className="ui page modals dimmer transition visible active" | ||
closeOnDocumentClick={false} | ||
closeOnEscape={true} | ||
closeOnRootNodeClick={true} | ||
eventPool="Modal" | ||
mountNode={<body />} | ||
onClose={[Function]} | ||
onMount={[Function]} | ||
onOpen={[Function]} | ||
onUnmount={[Function]} | ||
openOnTriggerClick={true} | ||
/> | ||
</Modal> | ||
</FeedbackPrompt> | ||
`; |