I am running Serenity-js with cucumber and Angular CLI.
I am using scripts in 'package.json' to execute the sequence of cleaning, testing and generating the report "e2e2": "failsafe clean pretest protractor report"
.
//package.json
.............
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"webdriver-update": "webdriver-manager update",
"protractor": "protractor ./protractor.conf.js",
"clean": "rimraf target",
"pretest": "serenity update",
"report": "serenity run",
"e2e2": "failsafe clean pretest protractor report"
................
Everything works fine but I want the report located in target/site/serenity/index.html
to be opened automatically when the test finishes.
How can I complete my script sequence with this functionality?