Select improvements for edge cases

This commit is contained in:
Sergio Crisostomo 2018-05-28 14:54:26 +02:00
parent ece49d8038
commit 9366c9a772
2 changed files with 28 additions and 16 deletions

View file

@ -47,7 +47,7 @@ describe('Select.vue', () => {
waitForIt(
() => {
const selectedValueSpan = vm.$el.querySelector('.ivu-select-selected-value');
return selectedValueSpan.textContent === 'Bar';
return selectedValueSpan && selectedValueSpan.textContent === 'Bar';
},
() => {
const selectedValueSpan = vm.$el.querySelector('.ivu-select-selected-value');
@ -121,7 +121,7 @@ describe('Select.vue', () => {
waitForIt(
() => {
const selectedValueSpan = vm.$el.querySelector('.ivu-select-selected-value');
return selectedValueSpan.textContent === 'Bar';
return selectedValueSpan && selectedValueSpan.textContent === 'Bar';
},
() => {
const placeholderSpan = vm.$el.querySelector('.ivu-select-placeholder');