mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Update InternationalText.spec.js
This commit is contained in:
@@ -1,21 +1,22 @@
|
|||||||
import { mountDefault } from '../helpers';
|
import { mountDefault } from '../helpers';
|
||||||
|
|
||||||
fdescribe('International Text', () => {
|
describe('International Text', () => {
|
||||||
|
|
||||||
it('renders default text for spinner.text', () => {
|
it('renders default text for spinner.text', () => {
|
||||||
const Select = mountDefault({loading: true,});
|
const Select = mountDefault({loading: true,});
|
||||||
expect(Select.find('.vs__spinner').text()).toBe('Loading...')
|
expect(Select.find('.vs__spinner').text()).toBe('Loading...')
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders default text for noOptions.text', () => {
|
it('renders default text for noOptions.text', async () => {
|
||||||
const Select = mountDefault({options: []});
|
const Select = mountDefault({options: []});
|
||||||
Select.vm.open = true;
|
Select.vm.open = true;
|
||||||
|
await Select.vm.$nextTick();
|
||||||
expect(Select.find('.vs__no-options').text()).toBe('Sorry, no matching options.')
|
expect(Select.find('.vs__no-options').text()).toBe('Sorry, no matching options.')
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders default text for search.ariaLabel', () => {
|
it('renders default text for search.ariaLabel', () => {
|
||||||
const Select = mountDefault();
|
const Select = mountDefault();
|
||||||
expect(Select.find('.vs__search').attributes()['aria-label']).toBe('Search for options')
|
expect(Select.find('[role="combobox"]').attributes()['aria-label']).toBe('Search for options')
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders default text for deselect.ariaLabel', () => {
|
it('renders default text for deselect.ariaLabel', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user