v2.3.0 release
See original GitHub issueThis issue is for tracking the discussion related to releasing v2.3.0
For example, I get the following output when running the v2.3.0 tests, looks like the majority of βerrorsβ are related to fieldSelectEx.vue tests.
> vue-form-generator@2.3.0 pretest ./vue-form-generator
> npm run lint
> vue-form-generator@2.3.0 lint ./vue-form-generator
> eslint --ext=.js,.vue src test/unit/specs
> vue-form-generator@2.3.0 test ./vue-form-generator
> npm run unit
> vue-form-generator@2.3.0 unit ./vue-form-generator
> cross-env NODE_ENV=test nyc npm run mocha
> vue-form-generator@2.3.0 mocha ./vue-form-generator
> mocha-webpack --webpack-config build/webpack.test.config.js --require test/unit/setup.js test/unit/specs/**/*.spec.js
WEBPACK Compiling...
WEBPACK Compiled successfully in 5838ms
MOCHA Testing...
abstractField.vue
check static value
β should give the model static value
β should set new value to model if value changed
check nested value
β should give the model static value
β should set new value to model if value changed
check nested value if not exists
β should give the model static value
β should set new value to model if value changed
check value as get/set function
- should be called the schema.get function
β should set new value to model if value changed
check formatValueToField & formatValueToModel function
β should return the formatted value
β should set the formatted value to model
check schema onChanged event
β should called once the schema.onChanged
check validateAfterChanged option
β should not call validate function after value changed
β should call validate function after value changed
check validate function with one validator
β should call schema validator
check validate function if field is disabled
β should not call schema validator
check validate function if field is readonly
β should not call schema validator
check validate function with validator array
β should call schema validator
check schema onValidated event
β should called once the schema.onValidated
check schema onValidated event
β should return empty array
β should not call 'onValidated'
β should return empty array
check clearValidationErrors
β should be undefined
β should be an empty array
β should contain one error string
check getFieldID function
β should return slugified inputName, if available
β should return slugified label, if no inputName
β should return slugified model name, if no inputName or label
check classes application to fields
β should have 2 classes ('applied-class' and 'another-class')
FieldCheckbox.vue
check template
β should contain a checkbox element
β should contain the value
β input value should be the model value after changed
- model value should be the input value if changed
β should have 2 classes
check optional attribute
β should set autocomplete
β should set disabled
β should set inputName
check dynamic html attributes
check input/wrapper attributes
β input should have data-* attribute
check non-specific attributes
β input should have data-* attribute
fieldChecklist.vue
check listbox template
check template with static string array
β should contain a .listbox element
β should contain 7 items
β should checked the values
test values reactivity to changes
β listbox value should be the model value after changed
β model value should be the listbox value if changed
test 'is-checked' class attribution reactivity to changes
β .list-row with checked input should have a 'is-checked' class
β .list-row with checked input should have a 'is-checked' class after model value is changed
β .list-row with checked input should have a 'is-checked' class after listbox value is changed
check static values with { value, name } objects (default key name)
β should contain items
β should checked the values
test values reactivity to changes
β listbox value should be the model value after changed
β model value should be the listbox value if changed
test 'is-checked' class attribution reactivity to changes
β .list-row with checked input should have a 'is-checked' class
β .list-row with checked input should have a 'is-checked' class after model value is changed
β .list-row with checked input should have a 'is-checked' class after listbox value is changed
check static values with { id, label } objects (custom key name with `checklistOptions`)
β should contain items
β should checked the values
test values reactivity to changes
β listbox value should be the model value after changed
β model value should be the listbox value if changed
test 'is-checked' class attribution reactivity to changes
β .list-row with checked input should have a 'is-checked' class
β .list-row with checked input should have a 'is-checked' class after model value is changed
β .list-row with checked input should have a 'is-checked' class after listbox value is changed
check function values
β should contain items
β should checked the values
β should contain input name field withouth inputName
β should contain input name field with inputName
test values reactivity to changes
β listbox value should be the model value after changed
β model value should be the listbox value if changed
test 'is-checked' class attribution reactivity to changes
β .list-row with checked input should have a 'is-checked' class
β .list-row with checked input should have a 'is-checked' class after model value is changed
β .list-row with checked input should have a 'is-checked' class after listbox value is changed
check combobox template
check template
β should contain a .combobox element
β should contain a .dropList element
β should contain a .mainRow element
β should contain 7 checkbox it expanded
β should contain input name field withouth inputName
β should contain input name field with inputName
β should checked the values
test values reactivity to changes
β dropList value should be the model value after changed
β model value should be the dropList value if changed (add)
β model value should be the checklist value if changed (remove)
- model value should be the dropList value if changed (null)
test 'is-checked' class attribution reactivity to changes
β .list-row with checked input should have a 'is-checked' class
β .list-row with checked input should have a 'is-checked' class after model value is changed
- .list-row with checked input should have a 'is-checked' class after listbox value is changed
check dynamic html attributes
check listbox input/wrapper attributes
β wrapper should have data-* attribute
β input should have data-* attribute
check combobox input/wrapper attributes
β wrapper should have data-* attribute
- input should have data-* attribute
check non-specific attributes
β input should have data-* attribute
fieldCleave.vue
check template
β should contain an masked input element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should be formatted data in model
check optional attribute
β should set autocomplete
β should set disabled
β should set readonly
β should set inputName
fieldDateTimePicker.vue
check template
Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!
β should contain an input text element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
check YYYYMMDD format
- should contain the value
Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!
β model value should be the formatted input value if changed
fieldGoogleAddress.vue
check template
Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!
β should contain an input text element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
fieldImage.vue
check template without preview
β should contain an input text element
β should contain a file input element
β should not visible the preview div
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should not contain a file input element if browse is false
β should not visible the preview div
β should not show the link input element if hideInput is true
β should not show base64 data in input field
β should clear input if press remove icon
- should convert image to base64 if file input changed
check optional attribute on text input
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
check optional attribute on file input
β should set disabled
β should set inputName
fieldInput.vue
check template
β should contain an input text element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should have 2 classes
change type of input
β should become a text
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
change type of input
β should become a password
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
change type of input
β should become a number
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
change type of input
β should become a email
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
change type of input
β should become a url
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
change type of input
β should become a tel
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
check dynamic html attributes
check input/wrapper attributes
β wrapper should have data-toggle attribute
β input should have data-toggle attribute
check non-specific attributes
β input should have data-toggle attribute
fieldLabel.vue
check template
β should contain a span element
β should contain the value
β input value should be the model value after changed
β should have 2 classes
check dynamic html attributes
check label attributes
β label should have data-* attribute
check non-specific attributes
β label should have data-* attribute
fieldMasked.vue
check template
JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!
β should contain an masked input element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
- should be formatted data in model
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
fieldNoUiSlider.vue
check template
β should contain a div element
β should contain an handle element
β should contain the value
β handle value should be the model value after changed
- model value should be the handle value after changed
β should set disabled
fieldPikaday.vue
check template
β should contain an input text element
β should contain the value
β input value should be the model value after changed
- model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
FieldRadios.vue
check template with static string array
β should contain a checkbox element
β should contain 7 items
β should checked the values
β label with checked input should have a 'is-checked' class
β should have 2 classes
test values reactivity to changes
β radioList value should be the model value after changed
β model value should be the radioList value if changed
test 'is-checked' class attribution reactivity to changes
β label with checked input should have a 'is-checked' class after model value is changed
β label with checked input should have a 'is-checked' class after radioList value is changed
check static values with { value, name } objects (default key name)
β should contain a checkbox element
β should contain 7 items
β should checked the values
β label with checked input should have a 'is-checked' class
test values reactivity to changes
β radioList value should be the model value after changed
β model value should be the radioList value if changed
test 'is-checked' class attribution reactivity to changes
β label with checked input should have a 'is-checked' class after model value is changed
β label with checked input should have a 'is-checked' class after radioList value is changed
check static values with { id, label } objects (custom key name with `radiosOptions`)
β should contain a checkbox element
β should contain 7 items
β should checked the values
β label with checked input should have a 'is-checked' class
test values reactivity to changes
β radioList value should be the model value after changed
β model value should be the radioList value if changed
test 'is-checked' class attribution reactivity to changes
β label with checked input should have a 'is-checked' class after model value is changed
β label with checked input should have a 'is-checked' class after radioList value is changed
fieldRangeSlider.vue
check template
ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!
β should contain an input text element
- should contain the value
- input value should be the model value after changed
- model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set placeholder
β should set readonly
β should set inputName
fieldSelect.vue
check template
β should contain a select element
β should contain option elements
β should contain a <non selected> element
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should contain a disabled <non selected> element if required
β should show the customized <non selected> text
β should hide the customized <non selected> text
check optional attribute
β should set disabled
β should set inputName
check static values with { id, name } objects
β should contain option elements
β should contain optgroup elements
β should contain option elements in optgroup
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
check function values
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should have 2 classes
check dynamic html attributes
check input/wrapper attributes
β input should have data-toggle attribute
check non-specific attributes
β input should have data-toggle attribute
fieldSelectEx.vue
check template
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
β should contain a select element
β should contain option elements
β should contain a <non selected> element
β should contain the value
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:77:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:77:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β input value should be the model value after changed (54ms)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:84:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:84:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β model value should be the input value if changed
- should not be multiple
check optional attribute
β should set disabled
β should set multiSelect
β should set inputName
check static values with { id, name } objects
- should contain option elements
- should contain the value
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:140:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:140:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β input value should be the model value after changed
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:147:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:147:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β model value should be the input value if changed
check function values
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:171:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Hook.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:317:10)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:171:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Hook.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:317:10)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
- should contain the value
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:67:1)
at Array.<anonymous> (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1835:12)
at flushCallbacks (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:1756:14)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:180:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:180:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β input value should be the model value after changed
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:186:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
TypeError: Cannot read property 'selectpicker' of undefined
at VueComponent.model (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/fieldSelectEx.vue:61:1)
at Watcher.run (./vue-form-generator/node_modules/vue/dist/vue.runtime.common.js:3231:19)
at ./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4040:15
at Array.forEach (<anonymous>)
at VueComponent.update (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:4039:20)
at Wrapper.trigger (./vue-form-generator/node_modules/@vue/test-utils/dist/vue-test-utils.js:1422:8)
at Context.<anonymous> (./vue-form-generator/.tmp/mocha-webpack/1530108416672/webpack:/test/unit/specs/fields/fieldSelectEx.spec.js:186:1)
at callFn (./vue-form-generator/node_modules/mocha/lib/runnable.js:372:21)
at Test.Runnable.run (./vue-form-generator/node_modules/mocha/lib/runnable.js:364:7)
at Runner.runTest (./vue-form-generator/node_modules/mocha/lib/runner.js:455:10)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:573:12
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:369:14)
at ./vue-form-generator/node_modules/mocha/lib/runner.js:379:7
at next (./vue-form-generator/node_modules/mocha/lib/runner.js:303:14)
at Immediate.<anonymous> (./vue-form-generator/node_modules/mocha/lib/runner.js:347:5)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
β model value should be the input value if changed
fieldSpectrum.vue
check template
Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!
β should contain an input color element
- should contain the value
- input value should be the model value after changed
- model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
fieldStaticMap.vue
check template
β should contain an img element
fieldSubmit.vue
check template
β should contain an input submit element
β should have 2 classes
valid form
- should not call validate if validateBeforeSubmit is false
- should call validate if validateBeforeSubmit is true
invalid form
- should not call onSubmit if validateBeforeSubmit is true
check optional attribute
β should set inputName
FieldSwitch.vue
check template
β should contain a checkbox element
β should contain the value
β should contain the default On/Off texts
β should set disabled
β input value should be the model value after changed
β model value should be the input value if changed
check optional attribute
β should set autocomplete
β should set disabled
β should set inputName
check template with custom On/Off texts
β check attributes
check template with custom On/Off values
β check input value
β input value should be the model value after changed
β model value should be the input value if changed
fieldTextArea.vue
check template
β should contain a textarea element
β should change rows to 4
β should contain the value
β input value should be the model value after changed
β model value should be the input value if changed
β should have 2 classes
check optional attribute
β should set disabled
β should set placeholder
β should set readonly
β should set inputName
fieldUpload.vue
check template
β should contain an input text element
check optional attribute
β should set disabled
β should set placeholder
β should set readonly
β should set name
β should set required
β should set multiple
β should set accept
fieldVueMultiSelect.vue
check template
β should contain a select element
β should contain option elements
β should set disabled
β input value should be the model value after changed
β input value should be the model value after changed (multiselection)
β model value should be the input value if changed
with objects
β model value should work with objects
β options should contain only text specified in label
β options should contain custom text specified in customLabel
SchemaUtils
test createDefaultObject function
β create default object by schema
test getMultipleFields function
β collect fields from schema where multi is true
test mergeMultiObjectFields function
β create merged model from multiple objects #1
β create merged model from multiple objects #2
β create merged model from cloned objects
Validators
test Validators.required
β should NOT give error if value is null, but field is NOT required
β should give error if value is null, but field is required
test Validators.number
β should give error if value is null, but field is required
β should give error if value is smaller than min
β should give error if value is greater than max
β should not give error
β should give error if value is string
β should not give error if value is null and field is not required
test Validators.integer
β should give error if value is not integer
β should not give error if value is integer
test Validators.double
β should give error if value is not double
β should not give error if value is double
test Validators.string
β should give error if value is null, but field is required
β should give error if value is smaller than min
β should give error if value is greater than max
β should give error if value is not string
β should not give error
β should not give error if value is null and field is not required
test Validators.array
β should give error if value is null, but field is required
β should give error if count of items is smaller than min
β should give error if count of items is greater than max
β should give error if value is not array
β should not give error
β should not give error if value is null and field is not required
β should give error if count of item is smaller than minimum and field is not required
test Validators.date
β should give error if value is null, but field is required
β should not give error
β should give error if value is smaller than min
β should give error if value is greater than max
β should give error if value is not a date
β should not give error if value is null and field is not required
test Validators.regexp
β should give error if value is null, but field is required
β should give error if value is not matched the pattern
β should not give error
β should not give error if value is null and field is not required
test Validators.email
β should give error if value is null, but field is required
β should give error if value is not matched the pattern
β should not give error
β should not give error if value is null and field is not required
test Validators.url
β should give error if value is null, but field is required
β should give error if value is not matched the pattern
β should not give error
β should not give error if value is null and field is not required
test Validators.creditCard
β should give error if value is null, but field is required
β should give error if value is not matched the pattern
β should not give error
β should not give error if value is null and field is not required
test Validators.alpha
β should give error if value is null, but field is required
β should give error if value is not alpha
β should not give error
β should not give error if value is null and field is not required
test Validators.alphaNumeric
β should give error if value is null, but field is required
β should give error if value is not alphaNumeric
β should not give error
β should not give error if value is null and field is not required
test localized error messages
β should give the default error message
β should give the localized error message
test local custom error messages
β should give the custom error message
β should give the default error message
381 passing (1s)
23 pending
MOCHA Tests completed successfully
-------------------------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-------------------------------------|----------|----------|----------|----------|-------------------|
All files | 73.74 | 63.82 | 76.09 | 73.53 | |
fields | 85 | 72.13 | 87.5 | 84.85 | |
abstractField.js | 85 | 72.13 | 87.5 | 84.85 |... 39,140,145,167 |
fields/core/src/fields/core | 65.28 | 57.6 | 33.33 | 65.28 | |
fieldChecklist.vue | 91.43 | 90.91 | 100 | 91.43 | 66,81,95 |
fieldInput.vue | 27.27 | 7.69 | 0 | 27.27 |... 30,132,140,146 |
fieldRadios.vue | 86.36 | 83.33 | 100 | 86.36 | 20,39,54 |
fieldSelect.vue | 87.18 | 78.13 | 100 | 87.18 |96,102,108,119,124 |
fieldSubmit.vue | 0 | 0 | 0 | 0 |... 27,28,30,32,35 |
fieldUpload.vue | 0 | 0 | 100 | 0 | 25,27 |
fields/optional/src/fields/optional | 53.54 | 43.43 | 66.67 | 53.37 | |
fieldCleave.vue | 53.85 | 50 | 100 | 53.85 | 54,57,64,69,70,71 |
fieldDateTimePicker.vue | 58.33 | 42.86 | 50 | 54.55 | 31,32,39,50,51 |
fieldGoogleAddress.vue | 18.18 | 12.5 | 50 | 18.18 |... 8,89,90,95,100 |
fieldImage.vue | 70.59 | 66.67 | 0 | 68.75 | 57,58,59,62,63 |
fieldMasked.vue | 60 | 33.33 | 100 | 60 | 15,27 |
fieldNoUiSlider.vue | 57.69 | 51.61 | 100 | 57.69 |... 55,61,64,88,96 |
fieldPikaday.vue | 63.64 | 50 | 50 | 70 | 34,40,46 |
fieldRangeSlider.vue | 20 | 10 | 50 | 20 |... 54,55,57,62,72 |
fieldSelectEx.vue | 70.83 | 50 | 100 | 70.83 |... 45,50,68,72,80 |
fieldSpectrum.vue | 30.77 | 12.5 | 50 | 33.33 |... 27,34,44,48,56 |
fieldStaticMap.vue | 100 | 70 | 100 | 100 | 14,16,35 |
fieldSwitch.vue | 85.71 | 87.5 | 100 | 83.33 | 24 |
fieldVueMultiSelect.vue | 52.94 | 53.33 | 100 | 52.94 |... 5,89,90,91,110 |
utils | 97.14 | 91.61 | 100 | 98.14 | |
dateFieldHelper.js | 90 | 75 | 100 | 90 | 10 |
schema.js | 97.22 | 84 | 100 | 97.14 | 59 |
validators.js | 97.67 | 94.26 | 100 | 99.14 | 153 |
-------------------------------------|----------|----------|----------|----------|-------------------|
Issue Analytics
- State:
- Created 5 years ago
- Comments:26 (20 by maintainers)
Top Results From Across the Web
VOLK v2.3.0 release - GNU Radio
On GNU Radio 'master' VOLK was finally removed as a submodule. Currently we see ongoing discussions on how to improve CPU feature detection...
Read more >v2.3.0 Release Notes β PufferPanel 2.x documentation
v2.3.0 Release NotesΒΆ. This release includes a bunch of quality of life changes and bugs fixes, so let's get down to it. The...
Read more >Release notes v2.3.0 - Alfresco Builder Network
These release notes provide information for the 2.3.0 release of the Alfresco Application Development Framework. This a General Available release of theΒ ...
Read more >Network Browser v2.3.0 Release Notes - Ape Apps
3.0 has just been published and should be rolling out to all devices shortly. This release includes several bug fixes and security upgrades,...
Read more >v2.8.3 | App Config
v2.8.3. Adds noBundledConfig option to Webpack, esbuild, vite and rollup ... v2.5.0. Adds some early deprecation warnings in preparation for version 3.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Apologies, Iβve been stuck in production release mode on my latest project and havenβt had time to work on VFGβ¦ will hopefully be getting back to VFG in the next week or two as my next project will rely heavily on it.
All done - there was an issue with the CI script.