@@ -13,7 +13,7 @@ function createField(test, schema = {}, model = null, disabled = false, options)
1313 [ el , vm , field ] = createVueField ( test , "fieldVueMultiSelect" , schema , model , disabled , options ) ;
1414}
1515
16- describe . skip ( "fieldVueMultiSelect.vue" , function ( ) {
16+ describe ( "fieldVueMultiSelect.vue" , function ( ) {
1717
1818 describe ( "check template" , ( ) => {
1919 let schema = {
@@ -48,7 +48,7 @@ describe.skip("fieldVueMultiSelect.vue", function() {
4848 } ) ;
4949
5050 it ( "should contain option elements" , ( ) => {
51- let options = input . querySelectorAll ( "li.multiselect__option" ) ;
51+ let options = input . querySelectorAll ( "li.multiselect__element . multiselect__option" ) ;
5252 expect ( options . length ) . to . be . equal ( schema . values . length ) ;
5353 expect ( options [ 1 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Paris" ) ;
5454 expect ( options [ 1 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
@@ -66,8 +66,8 @@ describe.skip("fieldVueMultiSelect.vue", function() {
6666 it ( "input value should be the model value after changed" , ( done ) => {
6767 model . city = "Rome" ;
6868 vm . $nextTick ( ( ) => {
69- expect ( input . querySelectorAll ( "li.multiselect__option--selected" ) . length ) . to . be . equal ( 1 ) ;
70- let options = input . querySelectorAll ( "li.multiselect__option" ) ;
69+ expect ( input . querySelectorAll ( "li .multiselect__option--selected" ) . length ) . to . be . equal ( 1 ) ;
70+ let options = input . querySelectorAll ( "li .multiselect__option" ) ;
7171 expect ( options [ 2 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Rome" ) ;
7272 expect ( options [ 2 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
7373 done ( ) ;
@@ -77,8 +77,8 @@ describe.skip("fieldVueMultiSelect.vue", function() {
7777 it ( "input value should be the model value after changed (multiselection)" , ( done ) => {
7878 model . city = [ "Paris" , "Rome" ] ;
7979 vm . $nextTick ( ( ) => {
80- expect ( input . querySelectorAll ( "li.multiselect__option--selected" ) . length ) . to . be . equal ( 2 ) ;
81- let options = input . querySelectorAll ( "li.multiselect__option" ) ;
80+ expect ( input . querySelectorAll ( "li .multiselect__option--selected" ) . length ) . to . be . equal ( 2 ) ;
81+ let options = input . querySelectorAll ( "li .multiselect__option" ) ;
8282 expect ( options [ 1 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Paris" ) ;
8383 expect ( options [ 1 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
8484 expect ( options [ 2 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Rome" ) ;
@@ -88,7 +88,7 @@ describe.skip("fieldVueMultiSelect.vue", function() {
8888 } ) ;
8989
9090 it ( "model value should be the input value if changed" , ( done ) => {
91- let options = input . querySelectorAll ( "li.multiselect__option" ) ;
91+ let options = input . querySelectorAll ( "li .multiselect__option" ) ;
9292 trigger ( options [ 2 ] , "mousedown" ) ;
9393
9494 vm . $nextTick ( ( ) => {
0 commit comments