[Ubuntu] Migrate Browsers and Rust tests to Pester (#2323)

* add tests for browsers and rust

* small fix

* fix tests invoking

* small fixes

* resolve conflicts

* fix firefox test
This commit is contained in:
Dibir Magomedsaygitov
2020-12-28 11:34:32 +03:00
committed by GitHub
parent ba0809214b
commit 7c15befd02
5 changed files with 71 additions and 34 deletions

View File

@@ -4,6 +4,8 @@
## Desc: Installs google-chrome and chromedriver
################################################################################
source $HELPER_SCRIPTS/invoke-tests.sh
LSB_RELEASE=$(lsb_release -rs)
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
@@ -12,13 +14,6 @@ apt-get update
apt-get install -y google-chrome-stable
echo "CHROME_BIN=/usr/bin/google-chrome" | tee -a /etc/environment
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v google-chrome; then
echo "google-chrome was not installed"
exit 1
fi
CHROME_VERSION=$(google-chrome --product-version)
CHROME_VERSION=${CHROME_VERSION%.*}
@@ -41,9 +36,4 @@ chmod +x $CHROMEDRIVER_BIN
ln -s "$CHROMEDRIVER_BIN" /usr/bin/
echo "CHROMEWEBDRIVER=$CHROMEDRIVER_DIR" | tee -a /etc/environment
# Run tests to determine that the chromedriver installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
if ! command -v chromedriver; then
echo "chromedriver was not installed"
exit 1
fi
invoke_tests "Browsers" "Chrome"