Caleb Porzio 2 年之前
父節點
當前提交
ce65d8bb2a
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tests/cypress/integration/plugins/ui/combobox.spec.js

+ 4 - 4
tests/cypress/integration/plugins/ui/combobox.spec.js

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