-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from NordicSemiconductor/fix/show-link-to-rel…
…eases-when-asking-for-update Show link to releases when asking for core update
- Loading branch information
Showing
8 changed files
with
270 additions
and
249 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
258 changes: 125 additions & 133 deletions
258
lib/components/__tests__/__snapshots__/ConfirmationDialog-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,154 +1,146 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ConfirmationDialog should not render cancel button if onCancel function is not provided 1`] = ` | ||
<div> | ||
<Modal | ||
backdrop={false} | ||
onHide={null} | ||
show={true} | ||
<Modal | ||
backdrop={false} | ||
onHide={null} | ||
show={true} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Something happened. | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Something happened. | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
</div> | ||
OK | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
`; | ||
|
||
exports[`ConfirmationDialog should render invisible dialog 1`] = ` | ||
<div> | ||
<Modal | ||
backdrop={false} | ||
onHide={[Function]} | ||
show={false} | ||
<Modal | ||
backdrop={false} | ||
onHide={[Function]} | ||
show={false} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
</div> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
`; | ||
|
||
exports[`ConfirmationDialog should render visible dialog with text 1`] = ` | ||
<div> | ||
<Modal | ||
backdrop={false} | ||
onHide={[Function]} | ||
show={true} | ||
<Modal | ||
backdrop={false} | ||
onHide={[Function]} | ||
show={true} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
> | ||
<ModalHeader | ||
closeButton={true} | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
</div> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
`; | ||
|
||
exports[`ConfirmationDialog should render visible dialog with text and operation in progress 1`] = ` | ||
<div> | ||
<Modal | ||
backdrop="static" | ||
onHide={[Function]} | ||
show={true} | ||
<Modal | ||
backdrop="static" | ||
onHide={[Function]} | ||
show={true} | ||
> | ||
<ModalHeader | ||
closeButton={false} | ||
> | ||
<ModalHeader | ||
closeButton={false} | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<img | ||
alt="Loading..." | ||
className="core-spinner" | ||
height={16} | ||
src="test-file-stub" | ||
width={16} | ||
/> | ||
<Button | ||
disabled={true} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={true} | ||
onClick={[Function]} | ||
> | ||
<ModalTitle> | ||
Confirm | ||
</ModalTitle> | ||
</ModalHeader> | ||
<ModalBody> | ||
<p> | ||
Do you confirm? | ||
</p> | ||
</ModalBody> | ||
<ModalFooter> | ||
<img | ||
alt="Loading..." | ||
className="core-spinner" | ||
height={16} | ||
src="test-file-stub" | ||
width={16} | ||
/> | ||
<Button | ||
disabled={true} | ||
onClick={[Function]} | ||
> | ||
OK | ||
</Button> | ||
<Button | ||
disabled={true} | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
</div> | ||
Cancel | ||
</Button> | ||
</ModalFooter> | ||
</Modal> | ||
`; |
Oops, something went wrong.