sliw
Not done. Full toolkit to make sure your electron application is working as expected.
How to use it
Install it:
npm install sliw
Add this to your index.js
:
const WebClient ElectronClient = ; window ; electron ;
Create a folder with your tests (let's name it sliw-tests
) and inside it create your first test login.spec.js
:
module sliw input'[name="username"]' 'myusername' input'[name="password"]' 'mypassword' ;
Create a file named sliw.config.js
in root of your project and define options:
const login = ; moduleexports = pipelines: login snapshotsFolder: `/sliw-tests` resolutions: 1000 600 1200 800 800 600 ;
Add script to your package.json
:
"e2e": "NOT_WATCH=true sliw"
And you are ready to go:
npm run e2e
CLI
sliw
Executes test pipelines described on config sliw.config.js
.
-p <pathToPipeline>
Execute single pipeline default config specifiec on sliw.config.js
.