Select improvements for edge cases
This commit is contained in:
parent
ece49d8038
commit
9366c9a772
2 changed files with 28 additions and 16 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue