Created
July 15, 2019 19:42
-
-
Save joshitagaki/6cf32d63569fcb133887d85aec0c53f1 to your computer and use it in GitHub Desktop.
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
[exec] > Task :apps:dynamic-data-mapping:dynamic-data-mapping-form-field-type:npmRunTest FAILED | |
[exec] FAIL test/js/Editor/Editor.es.js | |
[exec] ??? Field Editor ??? is readOnly | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor is readOnly 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 36 | }); | |
[exec] 37 | | |
[exec] > 38 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 39 | }); | |
[exec] 40 | | |
[exec] 41 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:38:21) | |
[exec] | |
[exec] ??? Field Editor ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div><span class="form-text">Type something</span> | |
[exec] | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] > 47 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 48 | }); | |
[exec] 49 | | |
[exec] 50 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:47:21) | |
[exec] | |
[exec] ??? Field Editor ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label for="ID"></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 54 | }); | |
[exec] 55 | | |
[exec] > 56 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 57 | }); | |
[exec] 58 | | |
[exec] 59 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:56:21) | |
[exec] | |
[exec] ??? Field Editor ??? has a placeholder | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has a placeholder 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" data-placeholder="Placeholder" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 72 | }); | |
[exec] 73 | | |
[exec] > 74 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] 77 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:74:21) | |
[exec] | |
[exec] ??? Field Editor ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 81 | }); | |
[exec] 82 | | |
[exec] > 83 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 84 | }); | |
[exec] 85 | | |
[exec] 86 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:83:21) | |
[exec] | |
[exec] ??? Field Editor ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 97 | component = new Editor(defaultEditorConfig); | |
[exec] 98 | | |
[exec] > 99 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 100 | }); | |
[exec] 101 | | |
[exec] 102 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:99:21) | |
[exec] | |
[exec] ??? Field Editor ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor">value</div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 106 | }); | |
[exec] 107 | | |
[exec] > 108 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 109 | }); | |
[exec] 110 | | |
[exec] 111 | it('has a key', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:108:21) | |
[exec] | |
[exec] ??? Field Editor ??? has a key | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor has a key 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 115 | }); | |
[exec] 116 | | |
[exec] > 117 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 118 | }); | |
[exec] 119 | | |
[exec] 120 | it('emits a change value when onChangeEditor method is triggered', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:117:21) | |
[exec] | |
[exec] ??? Field Editor ??? triggers AlloyEditor actionPerformed method | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Editor triggers AlloyEditor actionPerformed method 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="field-type-editor form-control input-group-container"> | |
[exec] <div class="alloy-editor-container input-group" id="textFieldContainer"> | |
[exec] <div class="alloy-editor alloy-editor-placeholder" contenteditable="false" id="textFieldEditorContainer" name="textFieldEditor"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 148 | }); | |
[exec] 149 | | |
[exec] > 150 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 151 | }); | |
[exec] 152 | }); | |
[exec] 153 | | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Editor/Editor.es.js:150:21) | |
[exec] | |
[exec] ??? 9 snapshots failed. | |
[exec] FAIL test/js/Radio/Radio.es.js | |
[exec] ??? Field Radio ??? is not edidable | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio is not edidable 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 36 | }); | |
[exec] 37 | | |
[exec] > 38 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 39 | }); | |
[exec] 40 | | |
[exec] 41 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:38:21) | |
[exec] | |
[exec] ??? Field Radio ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div><span class="form-text">Type something</span> | |
[exec] </div> | |
[exec] | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] > 47 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 48 | }); | |
[exec] 49 | | |
[exec] 50 | it('renders options', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:47:21) | |
[exec] | |
[exec] ??? Field Radio ??? renders options | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio renders options 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio" id="id"><label><input class="custom-control-input" name="radioField" value="item" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">label</span></span></label></div> | |
[exec] <div class="custom-control custom-radio" id="id"><label><input class="custom-control-input" name="radioField" value="item" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">label2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] > 77 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 78 | }); | |
[exec] 79 | | |
[exec] 80 | it('renders no options when options is empty', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:77:21) | |
[exec] | |
[exec] ??? Field Radio ??? renders no options when options is empty | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio renders no options when options is empty 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"></div> | |
[exec] </div> | |
[exec] | |
[exec] 84 | }); | |
[exec] 85 | | |
[exec] > 86 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 87 | }); | |
[exec] 88 | | |
[exec] 89 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:86:21) | |
[exec] | |
[exec] ??? Field Radio ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label for="ID"></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 93 | }); | |
[exec] 94 | | |
[exec] > 95 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 96 | }); | |
[exec] 97 | | |
[exec] 98 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:95:21) | |
[exec] | |
[exec] ??? Field Radio ??? has a predefined Value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio has a predefined Value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 111 | }); | |
[exec] 112 | | |
[exec] > 113 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 114 | }); | |
[exec] 115 | | |
[exec] 116 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:113:21) | |
[exec] | |
[exec] ??? Field Radio ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 120 | }); | |
[exec] 121 | | |
[exec] > 122 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 123 | }); | |
[exec] 124 | | |
[exec] 125 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:122:21) | |
[exec] | |
[exec] ??? Field Radio ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 136 | component = new Radio(defaultRadioConfig); | |
[exec] 137 | | |
[exec] > 138 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 139 | }); | |
[exec] 140 | | |
[exec] 141 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:138:21) | |
[exec] | |
[exec] ??? Field Radio ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Radio has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="radioField"><label></label> | |
[exec] + <div class="form-group" data-field-name="radioField"> | |
[exec] <div class="ddm-radio"> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 1</span></span></label></div> | |
[exec] <div class="custom-control custom-radio"><label><input class="custom-control-input" name="radioField" ref="input" type="radio" role="radio"><span class="custom-control-label"><span class="custom-control-label-text">Option 2</span></span></label></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 145 | }); | |
[exec] 146 | | |
[exec] > 147 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 148 | }); | |
[exec] 149 | }); | |
[exec] 150 | | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Radio/Radio.es.js:147:21) | |
[exec] | |
[exec] ??? 9 snapshots failed. | |
[exec] FAIL test/js/Paragraph/Paragraph.es.js | |
[exec] ??? Field Paragraph ??? is readOnly | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph is readOnly 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 36 | }); | |
[exec] 37 | | |
[exec] > 38 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 39 | }); | |
[exec] 40 | | |
[exec] 41 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:38:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label for="ID"></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] > 47 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 48 | }); | |
[exec] 49 | | |
[exec] 50 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:47:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? has a placeholder | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph has a placeholder 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 63 | }); | |
[exec] 64 | | |
[exec] > 65 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 66 | }); | |
[exec] 67 | | |
[exec] 68 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:65:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 72 | }); | |
[exec] 73 | | |
[exec] > 74 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] 77 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:74:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 88 | component = new Paragraph(defaultParagraphConfig); | |
[exec] 89 | | |
[exec] > 90 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 91 | }); | |
[exec] 92 | | |
[exec] 93 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:90:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 97 | }); | |
[exec] 98 | | |
[exec] > 99 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 100 | }); | |
[exec] 101 | | |
[exec] 102 | it('has a key', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:99:21) | |
[exec] | |
[exec] ??? Field Paragraph ??? has a key | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Paragraph has a key 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="form-group liferay-ddm-form-field-paragraph" data-fieldname="textField"> | |
[exec] <div class="liferay-ddm-form-field-paragraph-text"></div> | |
[exec] </div> | |
[exec] </div> | |
[exec] | |
[exec] 106 | }); | |
[exec] 107 | | |
[exec] > 108 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 109 | }); | |
[exec] 110 | }); | |
[exec] 111 | | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Paragraph/Paragraph.es.js:108:21) | |
[exec] | |
[exec] ??? 7 snapshots failed. | |
[exec] FAIL test/js/Text/Text.es.js | |
[exec] ??? Field Text ??? is not readOnly | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text is not readOnly 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] | |
[exec] 36 | }); | |
[exec] 37 | | |
[exec] > 38 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 39 | }); | |
[exec] 40 | | |
[exec] 41 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:38:21) | |
[exec] | |
[exec] ??? Field Text ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" value=""><span class="form-text">Type something</span></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" value=""><span class="form-text">Type something</span></div> | |
[exec] | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] > 47 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 48 | }); | |
[exec] 49 | | |
[exec] 50 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:47:21) | |
[exec] | |
[exec] ??? Field Text ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label for="ID"></label><input class="ddm-field-text form-control" name="textField" type="text" id="ID" value=""></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" id="ID" value=""></div> | |
[exec] | |
[exec] 54 | }); | |
[exec] 55 | | |
[exec] > 56 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 57 | }); | |
[exec] 58 | | |
[exec] 59 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:56:21) | |
[exec] | |
[exec] ??? Field Text ??? has a placeholder | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text has a placeholder 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" placeholder="Placeholder" value=""></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" placeholder="Placeholder" value=""></div> | |
[exec] | |
[exec] 72 | }); | |
[exec] 73 | | |
[exec] > 74 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] 77 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:74:21) | |
[exec] | |
[exec] ??? Field Text ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] | |
[exec] 81 | }); | |
[exec] 82 | | |
[exec] > 83 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 84 | }); | |
[exec] 85 | | |
[exec] 86 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:83:21) | |
[exec] | |
[exec] ??? Field Text ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" value=""></div> | |
[exec] | |
[exec] 97 | component = new Text(defaultTextConfig); | |
[exec] 98 | | |
[exec] > 99 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 100 | }); | |
[exec] 101 | | |
[exec] 102 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:99:21) | |
[exec] | |
[exec] ??? Field Text ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Text has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="textField"><label></label><input class="ddm-field-text form-control" name="textField" type="text" value="value"></div> | |
[exec] + <div class="form-group" data-field-name="textField"><input class="ddm-field-text form-control" name="textField" type="text" value="value"></div> | |
[exec] | |
[exec] 106 | }); | |
[exec] 107 | | |
[exec] > 108 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 109 | }); | |
[exec] 110 | | |
[exec] 111 | it('emits a field edit with correct parameters', done => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Text/Text.es.js:108:21) | |
[exec] | |
[exec] ??? 7 snapshots failed. | |
[exec] FAIL test/js/DocumentLibrary/DocumentLibrary.es.js (5.089s) | |
[exec] ??? Field DocumentLibrary ??? is not readOnly | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary is not readOnly 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" value=""> | |
[exec] | |
[exec] 36 | }); | |
[exec] 37 | | |
[exec] > 38 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 39 | }); | |
[exec] 40 | | |
[exec] 41 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:38:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" value=""> | |
[exec] | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] > 47 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 48 | }); | |
[exec] 49 | | |
[exec] 50 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:47:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label for="ID"></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input id="ID" name="textField" type="hidden" value=""> | |
[exec] | |
[exec] 54 | }); | |
[exec] 55 | | |
[exec] > 56 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 57 | }); | |
[exec] 58 | | |
[exec] 59 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:56:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? has a placeholder | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary has a placeholder 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" placeholder="Placeholder" value=""> | |
[exec] | |
[exec] 72 | }); | |
[exec] 73 | | |
[exec] > 74 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] 77 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:74:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" value=""> | |
[exec] | |
[exec] 81 | }); | |
[exec] 82 | | |
[exec] > 83 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 84 | }); | |
[exec] 85 | | |
[exec] 86 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:83:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" value=""> | |
[exec] | |
[exec] 97 | component = new DocumentLibrary(defaultDocumentLibraryConfig); | |
[exec] 98 | | |
[exec] > 99 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 100 | }); | |
[exec] 101 | | |
[exec] 102 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:99:21) | |
[exec] | |
[exec] ??? Field DocumentLibrary ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field DocumentLibrary has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] @@ -1,6 +1,6 @@ | |
[exec] - <div class="form-group" data-field-name="textField"><label></label> | |
[exec] + <div class="form-group" data-field-name="textField"> | |
[exec] <div class="liferay-ddm-form-field-document-library"> | |
[exec] <div class="input-group"> | |
[exec] <div class="input-group-item input-group-prepend"><input class="field form-control" disabled="" id="textFieldinputFile" type="text" value=""></div> | |
[exec] <div class="input-group-append input-group-item input-group-item-shrink"><button class="btn btn-secondary select-button" type="button"><span class="lfr-btn-label">select</span></button></div> | |
[exec] </div><input name="textField" type="hidden" value="{"id":"123"}"> | |
[exec] | |
[exec] 108 | }); | |
[exec] 109 | | |
[exec] > 110 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 111 | }); | |
[exec] 112 | }); | |
[exec] 113 | | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/DocumentLibrary/DocumentLibrary.es.js:110:21) | |
[exec] | |
[exec] ??? 7 snapshots failed. | |
[exec] FAIL test/js/KeyValue/KeyValue.es.js | |
[exec] ??? KeyValue ??? is not edidable | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue is not edidable 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 32 | }); | |
[exec] 33 | | |
[exec] > 34 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 35 | }); | |
[exec] 36 | | |
[exec] 37 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:34:21) | |
[exec] | |
[exec] ??? KeyValue ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div><span class="form-text">Type something</span> | |
[exec] </div> | |
[exec] | |
[exec] 42 | }); | |
[exec] 43 | | |
[exec] > 44 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 45 | }); | |
[exec] 46 | | |
[exec] 47 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:44:21) | |
[exec] | |
[exec] ??? KeyValue ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label for="ID"></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 52 | }); | |
[exec] 53 | | |
[exec] > 54 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 55 | }); | |
[exec] 56 | | |
[exec] 57 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:54:21) | |
[exec] | |
[exec] ??? KeyValue ??? has a label | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has a label 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] <div class="form-group" data-field-name="keyValue"><label>label </label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 62 | }); | |
[exec] 63 | | |
[exec] > 64 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 65 | }); | |
[exec] 66 | | |
[exec] 67 | it('has a predefined Value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:64:21) | |
[exec] | |
[exec] ??? KeyValue ??? has a predefined Value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has a predefined Value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" placeholder="Option 1" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" placeholder="Option 1" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 72 | }); | |
[exec] 73 | | |
[exec] > 74 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 75 | }); | |
[exec] 76 | | |
[exec] 77 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:74:21) | |
[exec] | |
[exec] ??? KeyValue ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 82 | }); | |
[exec] 83 | | |
[exec] > 84 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 85 | }); | |
[exec] 86 | | |
[exec] 87 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:84:21) | |
[exec] | |
[exec] ??? KeyValue ??? renders Label if showLabel is true | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue renders Label if showLabel is true 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] <div class="form-group" data-field-name="keyValue"><label>text </label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 93 | }); | |
[exec] 94 | | |
[exec] > 95 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 96 | }); | |
[exec] 97 | | |
[exec] 98 | it('has a spritemap', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:95:21) | |
[exec] | |
[exec] ??? KeyValue ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 102 | }); | |
[exec] 103 | | |
[exec] > 104 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 105 | }); | |
[exec] 106 | | |
[exec] 107 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:104:21) | |
[exec] | |
[exec] ??? KeyValue ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value="value"></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value="value"></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text"></div> | |
[exec] </div> | |
[exec] | |
[exec] 112 | }); | |
[exec] 113 | | |
[exec] > 114 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 115 | }); | |
[exec] 116 | | |
[exec] 117 | it('renders component with a key', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:114:21) | |
[exec] | |
[exec] ??? KeyValue ??? renders component with a key | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "KeyValue renders component with a key 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="keyValue"><label></label> | |
[exec] - <div class="form-group" data-field-name="keyValueLabelkeyValue"><label></label><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="keyValue"> | |
[exec] + <div class="form-group" data-field-name="keyValueLabelkeyValue"><input class="ddm-field-text form-control" name="keyValueLabelkeyValue" type="text" value=""></div> | |
[exec] <div class="active form-text key-value-editor"><label class="control-label key-value-label">field-name:</label><input class="key-value-input" type="text" value="key"></div> | |
[exec] </div> | |
[exec] | |
[exec] 122 | }); | |
[exec] 123 | | |
[exec] > 124 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 125 | }); | |
[exec] 126 | }); | |
[exec] 127 | | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/KeyValue/KeyValue.es.js:124:21) | |
[exec] | |
[exec] ??? 10 snapshots failed. | |
[exec] FAIL test/js/Numeric/Numeric.es.js | |
[exec] ??? Field Numeric ??? renders the default markup | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric renders the default markup 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 41 | }); | |
[exec] 42 | | |
[exec] > 43 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 44 | }); | |
[exec] 45 | | |
[exec] 46 | it('is not readOnly', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:43:21) | |
[exec] | |
[exec] ??? Field Numeric ??? is not readOnly | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric is not readOnly 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 50 | }); | |
[exec] 51 | | |
[exec] > 52 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 53 | }); | |
[exec] 54 | | |
[exec] 55 | it('has a helptext', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:52:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has a helptext | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has a helptext 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""><span class="form-text">Type something</span></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""><span class="form-text">Type something</span></div> | |
[exec] | |
[exec] 59 | }); | |
[exec] 60 | | |
[exec] > 61 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 62 | }); | |
[exec] 63 | | |
[exec] 64 | it('has an id', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:61:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has an id | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has an id 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label for="ID"></label><input class="form-control" id="ID" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" id="ID" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 68 | }); | |
[exec] 69 | | |
[exec] > 70 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 71 | }); | |
[exec] 72 | | |
[exec] 73 | it('has a label', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:70:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has a placeholder | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has a placeholder 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" placeholder="Placeholder" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" placeholder="Placeholder" type="text" value=""></div> | |
[exec] | |
[exec] 86 | }); | |
[exec] 87 | | |
[exec] > 88 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 89 | }); | |
[exec] 90 | | |
[exec] 91 | it('is not required', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:88:21) | |
[exec] | |
[exec] ??? Field Numeric ??? is not required | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric is not required 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 95 | }); | |
[exec] 96 | | |
[exec] > 97 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 98 | }); | |
[exec] 99 | | |
[exec] 100 | it('renders Label if showLabel is true', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:97:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has a spritemap | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has a spritemap 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 111 | component = new Numeric(defaultNumericConfig); | |
[exec] 112 | | |
[exec] > 113 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 114 | }); | |
[exec] 115 | | |
[exec] 116 | it('has a value', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:113:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has a value | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has a value 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value="123"></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value="123"></div> | |
[exec] | |
[exec] 120 | }); | |
[exec] 121 | | |
[exec] > 122 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 123 | }); | |
[exec] 124 | | |
[exec] 125 | it('has a key', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:122:21) | |
[exec] | |
[exec] ??? Field Numeric ??? has a key | |
[exec] | |
[exec] expect(value).toMatchSnapshot() | |
[exec] | |
[exec] Received value does not match stored snapshot "Field Numeric has a key 1". | |
[exec] | |
[exec] - Snapshot | |
[exec] + Received | |
[exec] | |
[exec] - <div class="form-group" data-field-name="numericField"><label></label><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] + <div class="form-group" data-field-name="numericField"><input class="form-control" name="numericField" type="text" value=""></div> | |
[exec] | |
[exec] 129 | }); | |
[exec] 130 | | |
[exec] > 131 | expect(component).toMatchSnapshot(); | |
[exec] | ^ | |
[exec] 132 | }); | |
[exec] 133 | | |
[exec] 134 | it('emits a field edit event on field value change', () => { | |
[exec] | |
[exec] at Object.toMatchSnapshot (test/js/Numeric/Numeric.es.js:131:21) | |
[exec] | |
[exec] ??? 9 snapshots failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment