Keeps switching my protractor tests to Karma Follow
For our end to end automation testing, we have a our spec setup in the config as : specs: ['./**/*.e2e-spec.ts'], which works all well and good.
Now, I have cloned that config for our API integrations tests. I want to switch to specs: ['./**/*.int-spec.ts'] , however, anytime I try this, WebStorm will then try running my tests as Karma tests, and not protractor. How do I get WebStorm to stop doing this?
Please sign in to leave a comment.
e2ename or file name matches
Is there any way to alter this? Like add a new extension type?
No, this can't be altered:(
Hello Elena Pogorelova
My file name does end with .e2e-spec.ts but IntelliJ opens a Karma run configuration rather than a Protactor run configuration when I try to run a test, any idea why please?
IntelliJ IDEA 2022.3.2 (Ultimate Edition)
Build #IU-223.8617.56, built on January 26, 2023
Do you have a sample project you could share that reproduces the problem?
Yes, here is a basic Angular project created with ng new. I just added the protractor dependency, a app.component.e2e-spec.ts file and a protractor.conf.ts file.
The IDE needs a valid protractor configuration file to detect protractor tests; but
protractor.conf.tsis treated as a usual
.js. Note that you will have to delete all auto-created Karma run configurations for your e2e files, as the IDE will always prefer existing configurations current file is associated with when running tests