From 4d2d3b6ee8220aecfc99c969c3510bac192c9fa6 Mon Sep 17 00:00:00 2001 From: alexeykagansky Date: Thu, 30 Sep 2021 15:16:30 +0300 Subject: [PATCH 1/3] test: add killing selenium port before the test --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce2b628ab..84eb1d31d 100644 --- a/package.json +++ b/package.json @@ -32,11 +32,13 @@ "prettier": "prettier --write 'src/**/*.ts'; prettier --write 'src/test/**/*.ts'", "prepack": "yarn lint && tsc && cp -R src/helpers/ lib/helpers && cp -R src/scripts/ lib/scripts", "setChromeDriverVersion": "node src/scripts/SetDriverVersionToDotEnv.js", - "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; wdio src/test/wdio.conf.js --suite regression", + "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; cleanSeleniumPort; wdio src/test/wdio.conf.js --suite regression", "spec": "DEFAULT_TIME_OUT=3000 wdio src/test/wdio.conf.js --spec", "pretest": "yarn lint", "start:sampleApp": "ws --spa src/test/sampleApp/index.html", - "release": "standard-version" + "release": "standard-version", + "_cleanSeleniumPort": "free port 4444 for selenium selenium standalone service", + "cleanSeleniumPort": "npx kill-port 4444" }, "dependencies": { "@applitools/eyes-sdk-core": "11.0.2", From e6592c012ab7ebb115cdb0c6323483e5b3d8063f Mon Sep 17 00:00:00 2001 From: alexeykagansky Date: Thu, 30 Sep 2021 15:17:03 +0300 Subject: [PATCH 2/3] Revert "test: add killing selenium port before the test" This reverts commit 4d2d3b6ee8220aecfc99c969c3510bac192c9fa6. --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 84eb1d31d..ce2b628ab 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,11 @@ "prettier": "prettier --write 'src/**/*.ts'; prettier --write 'src/test/**/*.ts'", "prepack": "yarn lint && tsc && cp -R src/helpers/ lib/helpers && cp -R src/scripts/ lib/scripts", "setChromeDriverVersion": "node src/scripts/SetDriverVersionToDotEnv.js", - "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; cleanSeleniumPort; wdio src/test/wdio.conf.js --suite regression", + "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; wdio src/test/wdio.conf.js --suite regression", "spec": "DEFAULT_TIME_OUT=3000 wdio src/test/wdio.conf.js --spec", "pretest": "yarn lint", "start:sampleApp": "ws --spa src/test/sampleApp/index.html", - "release": "standard-version", - "_cleanSeleniumPort": "free port 4444 for selenium selenium standalone service", - "cleanSeleniumPort": "npx kill-port 4444" + "release": "standard-version" }, "dependencies": { "@applitools/eyes-sdk-core": "11.0.2", From f4f25b548b007d40a46040be0719bc2cbfde82a2 Mon Sep 17 00:00:00 2001 From: alexeykagansky Date: Thu, 30 Sep 2021 16:09:00 +0300 Subject: [PATCH 3/3] test: remove killing selenium port before the test --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b6fa2152f..ceadc1b0f 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,11 @@ "prettier": "prettier --write 'src/**/*.ts'; prettier --write 'src/test/**/*.ts'", "prepack": "yarn lint && tsc && cp -R src/helpers/ lib/helpers && cp -R src/scripts/ lib/scripts", "setChromeDriverVersion": "node src/scripts/SetDriverVersionToDotEnv.js", - "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; yarn cleanSeleniumPort; wdio src/test/wdio.conf.js --suite regression", + "test": "DEFAULT_TIME_OUT=3000 yarn setChromeDriverVersion; wdio src/test/wdio.conf.js --suite regression", "spec": "DEFAULT_TIME_OUT=3000 wdio src/test/wdio.conf.js --spec", "pretest": "yarn lint", "start:sampleApp": "ws --spa src/test/sampleApp/index.html", - "release": "standard-version", - "_cleanSeleniumPort": "free port 4444 for selenium standalone service", - "cleanSeleniumPort": "npx kill-port 4444" + "release": "standard-version" }, "dependencies": { "@applitools/eyes-sdk-core": "11.0.2",