Stefan Bley

Results 16 comments of Stefan Bley

Actually, no. I am not even sure if this file can be shared.

How do you register the locator in protractor.conf.js?

@samvloeberghs Thanks for the pointer. I have seen that before but tbh it leaves my question unanswered. I can't figure out where in protractor.conf.js I am supposed to put `by.addLocator(..)`...

Thank you Sam, I will give it a try 👍

@samvloeberghs Do you also know a way to add the type definitions of the locator to TypeScript?

I can now answer this myself: Add it to the `includes `part of your `tsconfig.e2e.json`: ```json { "compilerOptions": { }, "includes": ["./my-custom-locator.ts"] } ```

@thorn0 you are right. There should not be a line break between h2 and the double-curly braces.

From my point of view, a test should be easy to read and understand. There should not be a need to add `.trim()` just for the sake of a formatter...

If I provide the credentials through env variables, I do not need to specify the API URL (in the config file)?