@@ -13,7 +13,7 @@ function createField(test, schema = {}, model = null, disabled = false, options)
13
13
[ el , vm , field ] = createVueField ( test , "fieldVueMultiSelect" , schema , model , disabled , options ) ;
14
14
}
15
15
16
- describe . skip ( "fieldVueMultiSelect.vue" , function ( ) {
16
+ describe ( "fieldVueMultiSelect.vue" , function ( ) {
17
17
18
18
describe ( "check template" , ( ) => {
19
19
let schema = {
@@ -48,7 +48,7 @@ describe.skip("fieldVueMultiSelect.vue", function() {
48
48
} ) ;
49
49
50
50
it ( "should contain option elements" , ( ) => {
51
- let options = input . querySelectorAll ( "li.multiselect__option" ) ;
51
+ let options = input . querySelectorAll ( "li.multiselect__element . multiselect__option" ) ;
52
52
expect ( options . length ) . to . be . equal ( schema . values . length ) ;
53
53
expect ( options [ 1 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Paris" ) ;
54
54
expect ( options [ 1 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
@@ -66,8 +66,8 @@ describe.skip("fieldVueMultiSelect.vue", function() {
66
66
it ( "input value should be the model value after changed" , ( done ) => {
67
67
model . city = "Rome" ;
68
68
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" ) ;
71
71
expect ( options [ 2 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Rome" ) ;
72
72
expect ( options [ 2 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
73
73
done ( ) ;
@@ -77,8 +77,8 @@ describe.skip("fieldVueMultiSelect.vue", function() {
77
77
it ( "input value should be the model value after changed (multiselection)" , ( done ) => {
78
78
model . city = [ "Paris" , "Rome" ] ;
79
79
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" ) ;
82
82
expect ( options [ 1 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Paris" ) ;
83
83
expect ( options [ 1 ] . classList . contains ( "multiselect__option--selected" ) ) . to . be . true ;
84
84
expect ( options [ 2 ] . querySelector ( "span" ) . textContent ) . to . be . equal ( "Rome" ) ;
@@ -88,7 +88,7 @@ describe.skip("fieldVueMultiSelect.vue", function() {
88
88
} ) ;
89
89
90
90
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" ) ;
92
92
trigger ( options [ 2 ] , "mousedown" ) ;
93
93
94
94
vm . $nextTick ( ( ) => {
0 commit comments