mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
feat: merge upstream into beta channel (#1589)
This commit is contained in:
@@ -4,7 +4,7 @@ describe('Search Slot Scope', () => {
|
||||
/**
|
||||
* @see https://www.w3.org/WAI/PF/aria/states_and_properties#aria-activedescendant
|
||||
*/
|
||||
describe('aria-activedescendant', () => {
|
||||
fdescribe('aria-activedescendant', () => {
|
||||
it('adds the active descendant attribute only when the dropdown is open and there is a typeAheadPointer value', async () => {
|
||||
const Select = mountDefault()
|
||||
|
||||
@@ -21,7 +21,11 @@ describe('Search Slot Scope', () => {
|
||||
})
|
||||
|
||||
it("adds the active descendant attribute when there's a typeahead value and an open dropdown", async () => {
|
||||
const Select = mountDefault()
|
||||
const Select = mountDefault({ modelValue: 'three' }, [
|
||||
'one',
|
||||
'two',
|
||||
'three',
|
||||
])
|
||||
|
||||
Select.vm.open = true
|
||||
Select.vm.typeAheadPointer = 1
|
||||
@@ -29,7 +33,7 @@ describe('Search Slot Scope', () => {
|
||||
|
||||
expect(
|
||||
Select.vm.scope.search.attributes['aria-activedescendant']
|
||||
).toEqual(`vs${Select.vm.uid}__option-1`)
|
||||
).toEqual(`vs${Select.vm.uid}__option-2`)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user