From e99bae89b410f0a6a887658d5e9b044d97f0b8b1 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Wed, 17 Jul 2019 07:33:46 +0200 Subject: [PATCH] fixed e2e tests --- .gitignore | 4 +++- e2e/dms/c4c/1.txt | 1 + e2e/dms/c81/2.txt | 1 + e2e/dms/ecc/3.txt | 1 + modules/client/front/address/edit/index.js | 3 ++- 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 e2e/dms/c4c/1.txt create mode 100644 e2e/dms/c81/2.txt create mode 100644 e2e/dms/ecc/3.txt diff --git a/.gitignore b/.gitignore index 7f9805f39..b8da20c68 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ node_modules dist/* e2e/dms/*/ -!e2e/dms/temp/ +!e2e/dms/c4c +!e2e/dms/c81 +!e2e/dms/ecc npm-debug.log .eslintcache datasources.*.json diff --git a/e2e/dms/c4c/1.txt b/e2e/dms/c4c/1.txt new file mode 100644 index 000000000..5ef648a88 --- /dev/null +++ b/e2e/dms/c4c/1.txt @@ -0,0 +1 @@ +It works! \ No newline at end of file diff --git a/e2e/dms/c81/2.txt b/e2e/dms/c81/2.txt new file mode 100644 index 000000000..5ef648a88 --- /dev/null +++ b/e2e/dms/c81/2.txt @@ -0,0 +1 @@ +It works! \ No newline at end of file diff --git a/e2e/dms/ecc/3.txt b/e2e/dms/ecc/3.txt new file mode 100644 index 000000000..5ef648a88 --- /dev/null +++ b/e2e/dms/ecc/3.txt @@ -0,0 +1 @@ +It works! \ No newline at end of file diff --git a/modules/client/front/address/edit/index.js b/modules/client/front/address/edit/index.js index 14c5880bc..76bde9e0f 100644 --- a/modules/client/front/address/edit/index.js +++ b/modules/client/front/address/edit/index.js @@ -25,9 +25,10 @@ export default class Controller { } set postcodeSelection(selection) { + const hasValue = this._postcodeSelection; this._postcodeSelection = selection; - if (!selection) return; + if (!selection || !hasValue) return; const town = selection.town; const province = town.province;