Fix another e2e test
This commit is contained in:
parent
623919719d
commit
5236d6a2ed
|
|
@ -99,14 +99,13 @@
|
||||||
couponCode: this.coupon,
|
couponCode: this.coupon,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
update(
|
update: (
|
||||||
store,
|
store,
|
||||||
{
|
{
|
||||||
data: {coupon},
|
data: {coupon},
|
||||||
},
|
},
|
||||||
) {
|
) => {
|
||||||
if (coupon.success) {
|
if (coupon.success) {
|
||||||
this.loading = false;
|
|
||||||
this.couponErrors = [];
|
this.couponErrors = [];
|
||||||
this.$apollo.query({
|
this.$apollo.query({
|
||||||
query: ME_QUERY,
|
query: ME_QUERY,
|
||||||
|
|
@ -115,7 +114,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}).catch(({message}) => {
|
}).catch(({message}) => {
|
||||||
this.loading = false;
|
|
||||||
if (message.indexOf('invalid_coupon') > -1) {
|
if (message.indexOf('invalid_coupon') > -1) {
|
||||||
this.couponErrors = ['Der angegebene Coupon-Code ist ungültig.'];
|
this.couponErrors = ['Der angegebene Coupon-Code ist ungültig.'];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue