fixed e2e tests

This commit is contained in:
Joan Sanchez 2019-07-17 07:33:46 +02:00
parent 2c39103e93
commit 573868c4ad
5 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View File

@ -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

1
e2e/dms/c4c/1.txt Normal file
View File

@ -0,0 +1 @@
It works!

1
e2e/dms/c81/2.txt Normal file
View File

@ -0,0 +1 @@
It works!

1
e2e/dms/ecc/3.txt Normal file
View File

@ -0,0 +1 @@
It works!

View File

@ -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;