[Improvement] Contact: optimize background image (#972)

This commit is contained in:
neverland
2018-05-02 18:46:45 +08:00
committed by GitHub
parent ef594f5f47
commit 8e088fd0f5
2 changed files with 13 additions and 8 deletions

View File

@@ -360,13 +360,9 @@ describe('Sku', (done) => {
wrapper.vm.$nextTick(() => {
buyBtn.trigger('click');
wrapper.vm.$nextTick(() => {
const toastText = document.querySelector('.van-toast div');
expect(toastText.textContent).to.equal('商品已经无法购买啦');
const plusBtn = wrapper.find('.van-stepper__plus')[0];
plusBtn.trigger('click');
wrapper.vm.$nextTick(() => {
expect(toastText.textContent).to.equal('库存不足');
done();
});
});