Skip to content

Commit 050c387

Browse files
committed
ci: fix e2e tests
1 parent 848147b commit 050c387

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/test.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,21 @@ do
6161

6262
USE_PROTRACTOR=$(npm list --depth 0 --parseable protractor)
6363

64-
if [ -z "$USE_PROTRACTOR" ]; then
64+
if [ ! -z "$USE_PROTRACTOR" ]; then
6565
echo "Setting up puppeteer for protractor..."
6666

6767
# force specific puppeteer/webdriver version to match up
6868
if [ "$NGX_PACKAGE_MANAGER" == "yarn" ]; then
69-
# yarn add npm i puppeteer@16.2.0
69+
yarn add -D puppeteer@16.2.0
7070
yarn run webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false
7171
else
72-
# npm i -D puppeteer@16.2.0
72+
npm i -D puppeteer@16.2.0
7373
npx webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false
7474
fi
75-
7675
# force usage of local chrome binary, in headless mode
7776
PROTRACTOR_CHROME_BIN=$(node -p "require('puppeteer').executablePath()") \
7877
PROTRACTOR_CHROME_ARGS='["lang=en-US","--headless","--disable-gpu","--window-size=1024,768"]' \
79-
npm run e2e --if-present -- # --webdriver-update=false
78+
npm run e2e --if-present
8079
else
8180
npm run e2e --if-present
8281
fi

0 commit comments

Comments
 (0)