I am working on a project on Angular7 where e2e
tests are written using protractor.
I have made a new feature in my project which I want to control via a functional switch. When switch is ON
feature will be rendered to user and hidden when switch is OFF
.
Switch will be a boolean value in my app.conf.json
file. This will be read in ts
file of component as a flag and flag will be used in html with *ngIf
condition.
My question is, is there a way I can execute certain e2e tests based on reading the boolean value from my app.conf.json
file. When value is true e2e test related to new feature are run and not run when it is false. I tried searching this on internet but no luck.