- PASV-UI Project Installation From The Scratch
- PASV-UI Project Installation Instruction For Current Collaborators
1 Go to https://github.com/
and create a new repository called PASV-UI.
2 Go to Settings and add collaborators.
3 Go to Clone or download
tab. Clone the project link.
4 Go to WebStorm dashboard and click Get from Version Control
.
5 Paste the copied link into URL text field. Click Clone
.
6 Create .gitignore
file with the following text:
.idea
.idea/*
node_modules/
7 Commit and push the .gitignore
file to the created repository.
8 Type the following command in the terminal to install WebDriverIO :
npm i --save-dev @wdio/cli
9 Type the following command in the terminal to generate a configuration file to store WebdriverIO settings:
./node_modules/.bin/wdio config -y
10 Open package.json
file and type the following test script:
"scripts": {
"test": "./node_modules/.bin/wdio wdio.conf.js"
},
11 Type the following command in the terminal to install Chai:
npm install chai
12 Type the following command in the terminal to install Babel:
npm install --save-dev @babel/core @babel/cli @babel/preset-env @babel/register
13 Setup babel.config.js
file properly.
module.exports = {
presets: [
['@babel/preset-env', {
targets: {
node: 12
}
}]
]
}
14 Edit wdio.conf.js
file by adding internal require to register Babel (lines #131-135):
mochaOpts: {
ui: 'bdd',
timeout: 60000,
compilers: ['js:@babel/register']
},
15 Run npm install
command in the terminal.
1 Go to https://github.com/KatAvdeeva/PASV-UI
.
3 Go to WebStorm dashboard. Click Get from Version Control
.
4 Place the copied link into URL text field. Click Clone
.
5 Click VCS - Git - Fetch
. If Fetch
command does not work, please click Pull
button.
6 Type the following command in the terminal:
npm install
- GitHub: https://github.com/
- WedDiverIO: https://webdriver.io/docs/gettingstarted.html
- Babel Setup: https://webdriver.io/docs/babel.html