feat: wip #6607
Annotations
7 errors and 2 warnings
src/menu-select/__tests__/index.spec.js > test menu-select size:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L35
Error: Snapshot `test menu-select size 1` mismatched
Expected: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option</span></div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
Received: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option</span></div><!--v-if--><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
❯ src/menu-select/__tests__/index.spec.js:35:28
❯ src/menu-select/__tests__/index.spec.js:21:41
|
src/menu-select/__tests__/index.spec.js > test menu-select scrollable:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L54
Error: Snapshot `test menu-select scrollable 1` mismatched
Expected: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3 var-menu-select--scrollable"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option</span></div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
Received: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3 var-menu-select--scrollable"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option</span></div><!--v-if--><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
❯ src/menu-select/__tests__/index.spec.js:54:26
|
src/menu-select/__tests__/index.spec.js > test menu-option disabled:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L149
Error: Snapshot `test menu-option disabled 1` mismatched
Expected: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal var-menu-option--disabled"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
Received: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal var-menu-option--disabled"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><!--v-if--><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
❯ src/menu-select/__tests__/index.spec.js:149:26
|
src/menu-select/__tests__/index.spec.js > test menu-select value mapping:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L170
Error: Snapshot `test menu-select value mapping 1` mismatched
Expected: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
Received: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><!--v-if--><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
❯ src/menu-select/__tests__/index.spec.js:170:26
|
src/menu-select/__tests__/index.spec.js > test menu-option default slot:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L190
Error: Snapshot `test menu-option default slot 1` mismatched
Expected: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div>option slot</div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
Received: ""<transition-stub name="var-menu" appear="false" persisted="true" css="true"><div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px;" class="var-menu__menu var--box"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div>option slot</div><!--v-if--><div class="var-hover-overlay"></div></div></div></div></transition-stub>""
❯ src/menu-select/__tests__/index.spec.js:190:26
|
src/menu-select/__tests__/index.spec.js > test menu-select methods:
packages/varlet-ui/src/menu-select/__tests__/index.spec.js#L209
Error: Snapshot `test menu-select methods 1` mismatched
Expected: ""<div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px; transform-origin: top left;" class="var-menu__menu var--box var-menu-enter-from var-menu-enter-active" data-popper-placement="bottom-start"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><div class="var-menu-option__arrow"><!--v-if--></div><div class="var-hover-overlay"></div></div></div></div>""
Received: ""<div style="z-index: 2000; position: absolute; left: 0px; top: 0px; margin: 0px; transform-origin: top left;" class="var-menu__menu var--box var-menu-enter-from var-menu-enter-active" data-popper-placement="bottom-start"><div class="var-menu-select__menu var-elevation--3"><!--v-if--><div class="var-menu-option var--box var-menu-option--normal" tabindex="-1"><div class="var-menu-option__cover"></div><!--v-if--><div class="var-menu-option__text"><span class="var--ellipsis">Option 1</span></div><!--v-if--><div class="var-hover-overlay"></div></div></div></div>""
❯ src/menu-select/__tests__/index.spec.js:209:26
|
test
Process completed with exit code 1.
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test:
packages/varlet-ui/src/menu-select/MenuChildren.vue#L29
Variable 'option' is already declared in the upper scope
|