To debug local you can use standalone chrome
add line in .hermione.conf.js
gridUrl: 'http://localhost:9515'
git clone [email protected]:frontend-science/e2e-hermione.git
cd e2e-hermione
npm install
./docker-chrome.sh
Type in console For OSX:
export NODE_ENV=development
For Windows:
SET NODE_ENV=development
npm test
NODE_ENV=production npm test
npm run admin
npm run client
npm run admin tests/admin/mytest.js
npm run client tests/client/mytest.js
NODE_ENV=production hermione -c hermione.conf.js tests/admin/mytest.js
┌ configs // configuration for different envs
│ ├ default.json // applied always
│ ├ development.json // merging with default
│ └ production.json
│
├ debug // tpm folder for debug screenshots (in .gitignore)
│ ├ admin
│ └ client
│
├ pages // PageObjects - selectors for different elems on pages
│ ├ admin
│ │ ├ adminPage1.js
│ │ ├ adminPage2.js
│ │ └ adminPage3.js
│ └ client
│
├ tests // tests js files
│ ├ admin
│ │ ├ adminPage1.js
│ │ ├ adminPage2.js
│ │ └ adminPage3.js
│ └ client
│
├ .hermione.conf.js // main test config
├ docker-***.sh // sh files for quick run of dockerized browsers
├ package.json // project deps, and npm run scripts
└ README.md // This documentation file