Skip to content

Commit

Permalink
Udate script for preparing behat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Nov 22, 2023
1 parent d5b7541 commit 5bd7daa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/prepare_behat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ fi

if [ ! -f vendor/bin/chromedriver ]; then
MAJOR_CHROME_VERSION=$(google-chrome --product-version | grep -o '^[0-9]\+')
LATEST_CHROMEDRIVER=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$MAJOR_CHROME_VERSION)
curl https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER/chromedriver_linux64.zip > chromedriver.zip
LATEST_CHROMEDRIVER=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$MAJOR_CHROME_VERSION)
curl https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$LATEST_CHROMEDRIVER/linux64/chromedriver-linux64.zip > chromedriver.zip
unzip chromedriver.zip && rm chromedriver.zip
mv -f chromedriver vendor/bin/
mv -f chromedriver-linux64/chromedriver vendor/bin/
rm -rf chromedriver-linux64
fi

vendor/bin/symfony server:start --no-tls --daemon --port=4242 --document-root=tests/application/public
Expand Down

0 comments on commit 5bd7daa

Please sign in to comment.