summaryrefslogtreecommitdiffstats
path: root/webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-09-06 23:04:13 -0700
committerChristopher Speller <crspeller@gmail.com>2017-09-06 23:11:58 -0700
commitd8bd57901e33a7057e26e782e295099ffcc0da89 (patch)
treee12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap
parent7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff)
downloadchat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz
chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2
chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip
Removing webapp
Diffstat (limited to 'webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap')
-rw-r--r--webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap751
1 files changed, 0 insertions, 751 deletions
diff --git a/webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap b/webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap
deleted file mode 100644
index c5582dc7d..000000000
--- a/webapp/tests/components/__snapshots__/new_channel_modal.test.jsx.snap
+++ /dev/null
@@ -1,751 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`components/NewChannelModal should match snapshot, modal not showing 1`] = `
-<span>
- <Modal
- animation={true}
- autoFocus={true}
- backdrop={true}
- bsClass="modal"
- bsSize="large"
- dialogClassName="new-channel__modal"
- dialogComponentClass={[Function]}
- enforceFocus={true}
- keyboard={true}
- manager={
- ModalManager {
- "add": [Function],
- "containers": Array [],
- "data": Array [],
- "handleContainerOverflow": true,
- "hideSiblingNodes": true,
- "isTopModal": [Function],
- "modals": Array [],
- "remove": [Function],
- }
- }
- onHide={[Function]}
- renderBackdrop={[Function]}
- restoreFocus={true}
- show={true}
- >
- <ModalHeader
- bsClass="modal-header"
- closeButton={true}
- closeLabel="Close"
- >
- <ModalTitle
- bsClass="modal-title"
- componentClass="h4"
- >
- <FormattedMessage
- defaultMessage="New Channel"
- id="channel_modal.modalTitle"
- values={Object {}}
- />
- </ModalTitle>
- </ModalHeader>
- <form
- className="form-horizontal"
- role="form"
- >
- <ModalBody
- bsClass="modal-body"
- componentClass="div"
- >
- <div>
- <div
- className="modal-intro"
- >
- <FormattedMessage
- defaultMessage="Create a new public channel anyone can join. "
- id="channel_modal.publicChannel2"
- values={Object {}}
- />
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Create a private channel"
- id="channel_modal.privateGroup2"
- values={Object {}}
- />
- </a>
- </div>
- </div>
- <div
- className="form-group"
- >
- <label
- className="col-sm-3 form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Name"
- id="channel_modal.name"
- values={Object {}}
- />
- </label>
- <div
- className="col-sm-9"
- >
- <input
- autoFocus={true}
- className="form-control"
- id="newPublicChannelName"
- maxLength={22}
- onChange={[Function]}
- placeholder="E.g.: \\"Bugs\\", \\"Marketing\\", \\"客户支持\\""
- tabIndex="1"
- type="text"
- value="testchannel"
- />
- <p
- className="input__help dark"
- >
- URL: /testchannel (
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Edit"
- id="channel_modal.edit"
- values={Object {}}
- />
- </a>
- )
- </p>
- </div>
- </div>
- <div
- className="form-group"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Purpose"
- id="channel_modal.purpose"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPublicChannelPurpose"
- maxLength="250"
- onChange={[Function]}
- placeholder="E.g.: \\"A channel to file bugs and improvements\\""
- rows="4"
- tabIndex="2"
- value=""
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Describe how this channel should be used."
- id="channel_modal.descriptionHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- <div
- className="form-group less"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Header"
- id="channel_modal.header"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPublicChannelHeader"
- maxLength="1024"
- onChange={[Function]}
- placeholder="E.g.: \\"[Link Title](http://example.com)\\""
- rows="4"
- tabIndex="2"
- value=""
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Set text that will appear in the header of the channel beside the channel name. For example, include frequently used links by typing [Link Title](http://example.com)."
- id="channel_modal.headerHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- </ModalBody>
- <ModalFooter
- bsClass="modal-footer"
- componentClass="div"
- >
- <button
- className="btn btn-default"
- onClick={[Function]}
- type="button"
- >
- <FormattedMessage
- defaultMessage="Cancel"
- id="channel_modal.cancel"
- values={Object {}}
- />
- </button>
- <button
- className="btn btn-primary"
- onClick={[Function]}
- tabIndex="3"
- type="submit"
- >
- <FormattedMessage
- defaultMessage="Create New Channel"
- id="channel_modal.createNew"
- values={Object {}}
- />
- </button>
- </ModalFooter>
- </form>
- </Modal>
-</span>
-`;
-
-exports[`components/NewChannelModal should match snapshot, modal showing 1`] = `
-<span>
- <Modal
- animation={true}
- autoFocus={true}
- backdrop={true}
- bsClass="modal"
- bsSize="large"
- dialogClassName="new-channel__modal"
- dialogComponentClass={[Function]}
- enforceFocus={true}
- keyboard={true}
- manager={
- ModalManager {
- "add": [Function],
- "containers": Array [],
- "data": Array [],
- "handleContainerOverflow": true,
- "hideSiblingNodes": true,
- "isTopModal": [Function],
- "modals": Array [],
- "remove": [Function],
- }
- }
- onHide={[Function]}
- renderBackdrop={[Function]}
- restoreFocus={true}
- show={true}
- >
- <ModalHeader
- bsClass="modal-header"
- closeButton={true}
- closeLabel="Close"
- >
- <ModalTitle
- bsClass="modal-title"
- componentClass="h4"
- >
- <FormattedMessage
- defaultMessage="New Channel"
- id="channel_modal.modalTitle"
- values={Object {}}
- />
- </ModalTitle>
- </ModalHeader>
- <form
- className="form-horizontal"
- role="form"
- >
- <ModalBody
- bsClass="modal-body"
- componentClass="div"
- >
- <div>
- <div
- className="modal-intro"
- >
- <FormattedMessage
- defaultMessage="Create a new public channel anyone can join. "
- id="channel_modal.publicChannel2"
- values={Object {}}
- />
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Create a private channel"
- id="channel_modal.privateGroup2"
- values={Object {}}
- />
- </a>
- </div>
- </div>
- <div
- className="form-group"
- >
- <label
- className="col-sm-3 form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Name"
- id="channel_modal.name"
- values={Object {}}
- />
- </label>
- <div
- className="col-sm-9"
- >
- <input
- autoFocus={true}
- className="form-control"
- id="newPublicChannelName"
- maxLength={22}
- onChange={[Function]}
- placeholder="E.g.: \\"Bugs\\", \\"Marketing\\", \\"客户支持\\""
- tabIndex="1"
- type="text"
- value="testchannel"
- />
- <p
- className="input__help dark"
- >
- URL: /testchannel (
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Edit"
- id="channel_modal.edit"
- values={Object {}}
- />
- </a>
- )
- </p>
- </div>
- </div>
- <div
- className="form-group"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Purpose"
- id="channel_modal.purpose"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPublicChannelPurpose"
- maxLength="250"
- onChange={[Function]}
- placeholder="E.g.: \\"A channel to file bugs and improvements\\""
- rows="4"
- tabIndex="2"
- value=""
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Describe how this channel should be used."
- id="channel_modal.descriptionHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- <div
- className="form-group less"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Header"
- id="channel_modal.header"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPublicChannelHeader"
- maxLength="1024"
- onChange={[Function]}
- placeholder="E.g.: \\"[Link Title](http://example.com)\\""
- rows="4"
- tabIndex="2"
- value=""
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Set text that will appear in the header of the channel beside the channel name. For example, include frequently used links by typing [Link Title](http://example.com)."
- id="channel_modal.headerHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- </ModalBody>
- <ModalFooter
- bsClass="modal-footer"
- componentClass="div"
- >
- <button
- className="btn btn-default"
- onClick={[Function]}
- type="button"
- >
- <FormattedMessage
- defaultMessage="Cancel"
- id="channel_modal.cancel"
- values={Object {}}
- />
- </button>
- <button
- className="btn btn-primary"
- onClick={[Function]}
- tabIndex="3"
- type="submit"
- >
- <FormattedMessage
- defaultMessage="Create New Channel"
- id="channel_modal.createNew"
- values={Object {}}
- />
- </button>
- </ModalFooter>
- </form>
- </Modal>
-</span>
-`;
-
-exports[`components/NewChannelModal should match snapshot, private channel filled in header and purpose 1`] = `
-<span>
- <Modal
- animation={true}
- autoFocus={true}
- backdrop={true}
- bsClass="modal"
- bsSize="large"
- dialogClassName="new-channel__modal"
- dialogComponentClass={[Function]}
- enforceFocus={true}
- keyboard={true}
- manager={
- ModalManager {
- "add": [Function],
- "containers": Array [],
- "data": Array [],
- "handleContainerOverflow": true,
- "hideSiblingNodes": true,
- "isTopModal": [Function],
- "modals": Array [],
- "remove": [Function],
- }
- }
- onHide={[Function]}
- renderBackdrop={[Function]}
- restoreFocus={true}
- show={true}
- >
- <ModalHeader
- bsClass="modal-header"
- closeButton={true}
- closeLabel="Close"
- >
- <ModalTitle
- bsClass="modal-title"
- componentClass="h4"
- >
- <FormattedMessage
- defaultMessage="New Channel"
- id="channel_modal.modalTitle"
- values={Object {}}
- />
- </ModalTitle>
- </ModalHeader>
- <form
- className="form-horizontal"
- role="form"
- >
- <ModalBody
- bsClass="modal-body"
- componentClass="div"
- >
- <div>
- <div
- className="modal-intro"
- >
- <FormattedMessage
- defaultMessage="Create a new private channel with restricted membership. "
- id="channel_modal.privateGroup1"
- values={Object {}}
- />
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Create a public channel"
- id="channel_modal.publicChannel1"
- values={Object {}}
- />
- </a>
- </div>
- </div>
- <div
- className="form-group"
- >
- <label
- className="col-sm-3 form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Name"
- id="channel_modal.name"
- values={Object {}}
- />
- </label>
- <div
- className="col-sm-9"
- >
- <input
- autoFocus={true}
- className="form-control"
- id="newPrivateChannelName"
- maxLength={22}
- onChange={[Function]}
- placeholder="E.g.: \\"Bugs\\", \\"Marketing\\", \\"客户支持\\""
- tabIndex="1"
- type="text"
- value="testchannel"
- />
- <p
- className="input__help dark"
- >
- URL: /testchannel (
- <a
- href="#"
- onClick={[Function]}
- >
- <FormattedMessage
- defaultMessage="Edit"
- id="channel_modal.edit"
- values={Object {}}
- />
- </a>
- )
- </p>
- </div>
- </div>
- <div
- className="form-group"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Purpose"
- id="channel_modal.purpose"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPrivateChannelPurpose"
- maxLength="250"
- onChange={[Function]}
- placeholder="E.g.: \\"A channel to file bugs and improvements\\""
- rows="4"
- tabIndex="2"
- value="some purpose"
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Describe how this channel should be used."
- id="channel_modal.descriptionHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- <div
- className="form-group less"
- >
- <div
- className="col-sm-3"
- >
- <label
- className="form__label control-label"
- >
- <FormattedMessage
- defaultMessage="Header"
- id="channel_modal.header"
- values={Object {}}
- />
- </label>
- <label
- className="form__label light"
- >
- <FormattedMessage
- defaultMessage="(optional)"
- id="channel_modal.optional"
- values={Object {}}
- />
- </label>
- </div>
- <div
- className="col-sm-9"
- >
- <textarea
- className="form-control no-resize"
- id="newPrivateChannelHeader"
- maxLength="1024"
- onChange={[Function]}
- placeholder="E.g.: \\"[Link Title](http://example.com)\\""
- rows="4"
- tabIndex="2"
- value="some header"
- />
- <p
- className="input__help"
- >
- <FormattedMessage
- defaultMessage="Set text that will appear in the header of the channel beside the channel name. For example, include frequently used links by typing [Link Title](http://example.com)."
- id="channel_modal.headerHelp"
- values={Object {}}
- />
- </p>
- </div>
- </div>
- </ModalBody>
- <ModalFooter
- bsClass="modal-footer"
- componentClass="div"
- >
- <button
- className="btn btn-default"
- onClick={[Function]}
- type="button"
- >
- <FormattedMessage
- defaultMessage="Cancel"
- id="channel_modal.cancel"
- values={Object {}}
- />
- </button>
- <button
- className="btn btn-primary"
- onClick={[Function]}
- tabIndex="3"
- type="submit"
- >
- <FormattedMessage
- defaultMessage="Create New Channel"
- id="channel_modal.createNew"
- values={Object {}}
- />
- </button>
- </ModalFooter>
- </form>
- </Modal>
-</span>
-`;