Skip to content

Commit

Permalink
ci: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Aug 25, 2022
1 parent 848147b commit 050c387
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,21 @@ do

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

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

# force specific puppeteer/webdriver version to match up
if [ "$NGX_PACKAGE_MANAGER" == "yarn" ]; then
# yarn add npm i [email protected]
yarn add -D [email protected]
yarn run webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false
else
# npm i -D [email protected]
npm i -D [email protected]
npx webdriver-manager update --versions.chrome 104.0.5112.79 --gecko=false
fi

# force usage of local chrome binary, in headless mode
PROTRACTOR_CHROME_BIN=$(node -p "require('puppeteer').executablePath()") \
PROTRACTOR_CHROME_ARGS='["lang=en-US","--headless","--disable-gpu","--window-size=1024,768"]' \
npm run e2e --if-present -- # --webdriver-update=false
npm run e2e --if-present
else
npm run e2e --if-present
fi
Expand Down

0 comments on commit 050c387

Please sign in to comment.