Webship JS has a ready step definitions for automated functional testing.
- Nightwatch.js
- Cucumber-js
All you need to know about webship-js Docs.
npm i webship-js
yarn i webship-js
sudo apt install nodejs
sudo npm install yarn
sudo apt install java
CHROME_DRIVER_VERSION=$(wget -qO- chromedriver.storage.googleapis.com/LATEST_RELEASE);
echo $CHROME_DRIVER_VERSION;
wget http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
mkdir -p $HOME/.composer/vendor/bin
mv -f chromedriver $HOME/.composer/vendor/bin/
rm chromedriver_linux64.zip
export CHROME_BIN=/usr/bin/google-chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get clean
sudo apt-get update
sudo apt-get install dpkg
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
google-chrome --version