diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-06 17:24:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 17:24:08 -0400 |
commit | 6e7b912ec61a6a791e0e8405ff6f6bd7e622a187 (patch) | |
tree | c2fa1d2bae0b344859339d9077af5d822420e7bb /webapp/tests/components/__snapshots__ | |
parent | 02f09b8af90f1df38762b5257291b31597575dbb (diff) | |
download | chat-6e7b912ec61a6a791e0e8405ff6f6bd7e622a187.tar.gz chat-6e7b912ec61a6a791e0e8405ff6f6bd7e622a187.tar.bz2 chat-6e7b912ec61a6a791e0e8405ff6f6bd7e622a187.zip |
PLT-4257 Add pop-up asking if user wants to reset status (#6526)
* Add pop-up asking if user wants to reset status
* Update test snapshot
* Update prop name for old uses of confirm modal
* Updating checkbox (#6586)
* Updating style for checkbox (#6596)
Diffstat (limited to 'webapp/tests/components/__snapshots__')
-rw-r--r-- | webapp/tests/components/__snapshots__/reset_status_modal.test.jsx.snap | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/webapp/tests/components/__snapshots__/reset_status_modal.test.jsx.snap b/webapp/tests/components/__snapshots__/reset_status_modal.test.jsx.snap new file mode 100644 index 000000000..ec992a25e --- /dev/null +++ b/webapp/tests/components/__snapshots__/reset_status_modal.test.jsx.snap @@ -0,0 +1,54 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`components/ResetStatusModal should match snapshot 1`] = ` +<ConfirmModal + cancelButtonText={ + <FormattedMessage + defaultMessage="No, keep it as \\"{status}\\"" + id="modal.manual_status.cancel" + values={ + Object { + "status": "", + } + } + /> + } + checkboxText={ + <FormattedMessage + defaultMessage="Do not ask me again" + id="modal.manual_status.ask" + values={Object {}} + /> + } + confirmButtonClass="btn btn-primary" + confirmButtonText={ + <FormattedMessage + defaultMessage="Yes, set my status to \\"Online\\"" + id="modal.manual_status.button" + values={Object {}} + /> + } + message={ + <FormattedMessage + defaultMessage="Would you like to switch your status to \\"Online\\"?" + id="modal.manual_status.message" + values={Object {}} + /> + } + onCancel={[Function]} + onConfirm={[Function]} + show={false} + showCheckbox={true} + title={ + <FormattedMessage + defaultMessage="Your status is set to \\"{status}\\"" + id="modal.manual_status.title" + values={ + Object { + "status": "", + } + } + /> + } +/> +`; |