|
@@ -26,10 +26,10 @@ test.only('it works with x-model',
|
|
<ul x-combobox:options>
|
|
<ul x-combobox:options>
|
|
<template x-for="person in people" :key="person.id">
|
|
<template x-for="person in people" :key="person.id">
|
|
<li
|
|
<li
|
|
- :option="person.id"
|
|
|
|
x-combobox:option
|
|
x-combobox:option
|
|
- :value="person.id"
|
|
|
|
|
|
+ :value="person"
|
|
:disabled="person.disabled"
|
|
:disabled="person.disabled"
|
|
|
|
+ :option="person.id"
|
|
>
|
|
>
|
|
<span x-text="person.name"></span>
|
|
<span x-text="person.name"></span>
|
|
</li>
|
|
</li>
|
|
@@ -47,8 +47,8 @@ test.only('it works with x-model',
|
|
get('ul').should(notBeVisible())
|
|
get('ul').should(notBeVisible())
|
|
get('button').click()
|
|
get('button').click()
|
|
get('[option="2"]').click()
|
|
get('[option="2"]').click()
|
|
- // get('ul').should(notBeVisible())
|
|
|
|
- // get('button').should(haveText('Arlene Mccoy'))
|
|
|
|
|
|
+ get('ul').should(notBeVisible())
|
|
|
|
+ get('button').should(haveText('Arlene Mccoy'))
|
|
},
|
|
},
|
|
)
|
|
)
|
|
|
|
|